Nugget
Loading...
Searching...
No Matches
Typedefs | Functions | Variables
driver.c File Reference
#include "common/hardware/hwregs.h"
#include "common/hardware/irq.h"
#include "common/kernel/events.h"
#include "common/psxlibc/string.h"
#include "common/syscalls/syscalls.h"
#include "openbios/handlers/handlers.h"
#include "openbios/kernel/events.h"
#include "openbios/sio0/card.h"
#include "openbios/sio0/pad.h"
Include dependency graph for driver.c:

Typedefs

typedef int(* mcOpHandler) ()
 

Functions

void patch_remove_ChgclrPAD ()
 
void patch_disable_slotChangeOnAbort ()
 
void patch_send_pad ()
 
void patch_startPad ()
 
void patch_stopPad ()
 
int __attribute__ ((section(".ramtext")))
 
void busyloop (int count)
 
void exceptionHandlerPatchSlot1 ()
 
void exceptionHandlerCardFastTrackPatch ()
 
void mcAllowNewCard ()
 
int mcReadSector (int deviceId, int sector, uint8_t *buffer)
 
int mcWriteSector (int deviceId, int sector, uint8_t *buffer)
 
int cardInfoInternal (int deviceId)
 
int mcGetLastDevice ()
 

Variables

struct HandlerInfo g_sio0HandlerInfo
 
uint32_t g_sio0Mask
 
int g_mcActionInProgress
 
int g_mcPortFlipping
 
int g_mcLastPort
 
int g_mcGotError
 
uint8_t g_mcFlags [2]
 
int g_mcOperation
 
struct HandlerInfo g_mcHandlerInfo
 
int g_skipErrorOnNewCard
 
int g_mcFastTrackActive = 0
 
uint8_t * g_mcFastTrackOperationPtr = NULL
 
uint8_t * g_mcFastTrackBuffer = NULL
 
uint32_tg_mcFastTrackChecksumPtr = NULL
 
uint32_t g_mcFastTrackCounter = 0
 
uint8_t * g_mcUserBuffers [2]
 
uint32_t g_mcChecksum [2]
 
mcOpHandler g_mcHandlers [2]
 
int g_mcDeviceId [2]
 
int g_mcSector [2]
 
int g_mcHandlerDelayPatch = 0
 

Typedef Documentation

◆ mcOpHandler

typedef int(* mcOpHandler) ()

Function Documentation

◆ __attribute__()

int __attribute__ ( (section(".ramtext"))  )

◆ busyloop()

void busyloop ( int  count)

◆ cardInfoInternal()

int cardInfoInternal ( int  deviceId)

◆ exceptionHandlerCardFastTrackPatch()

void exceptionHandlerCardFastTrackPatch ( )

◆ exceptionHandlerPatchSlot1()

void exceptionHandlerPatchSlot1 ( )

◆ mcAllowNewCard()

void mcAllowNewCard ( )

◆ mcGetLastDevice()

int mcGetLastDevice ( )

◆ mcReadSector()

int mcReadSector ( int  deviceId,
int  sector,
uint8_t *  buffer 
)

◆ mcWriteSector()

int mcWriteSector ( int  deviceId,
int  sector,
uint8_t *  buffer 
)

◆ patch_disable_slotChangeOnAbort()

void patch_disable_slotChangeOnAbort ( )

◆ patch_remove_ChgclrPAD()

void patch_remove_ChgclrPAD ( )

◆ patch_send_pad()

void patch_send_pad ( )

◆ patch_startPad()

void patch_startPad ( )

◆ patch_stopPad()

void patch_stopPad ( )

Variable Documentation

◆ g_mcActionInProgress

int g_mcActionInProgress

◆ g_mcChecksum

uint32_t g_mcChecksum[2]

◆ g_mcDeviceId

int g_mcDeviceId[2]

◆ g_mcFastTrackActive

int g_mcFastTrackActive = 0

◆ g_mcFastTrackBuffer

uint8_t* g_mcFastTrackBuffer = NULL

◆ g_mcFastTrackChecksumPtr

uint32_t* g_mcFastTrackChecksumPtr = NULL

◆ g_mcFastTrackCounter

uint32_t g_mcFastTrackCounter = 0

◆ g_mcFastTrackOperationPtr

uint8_t* g_mcFastTrackOperationPtr = NULL

◆ g_mcFlags

uint8_t g_mcFlags[2]

◆ g_mcGotError

int g_mcGotError

◆ g_mcHandlerDelayPatch

int g_mcHandlerDelayPatch = 0

◆ g_mcHandlerInfo

struct HandlerInfo g_mcHandlerInfo

◆ g_mcHandlers

mcOpHandler g_mcHandlers[2]

◆ g_mcLastPort

int g_mcLastPort

◆ g_mcOperation

int g_mcOperation

◆ g_mcPortFlipping

int g_mcPortFlipping

◆ g_mcSector

int g_mcSector[2]

◆ g_mcUserBuffers

uint8_t* g_mcUserBuffers[2]

◆ g_sio0HandlerInfo

struct HandlerInfo g_sio0HandlerInfo

◆ g_sio0Mask

uint32_t g_sio0Mask

◆ g_skipErrorOnNewCard

int g_skipErrorOnNewCard