sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
iLink_internal.h File Reference

Go to the source code of this file.

Classes

struct  ieee1394_TrPacketHdr
struct  ieee1394_TrResponsePacketHdr
struct  ILINKMemMap
struct  DMAChannelRegBlock
struct  DMARRegBlock
struct  TransactionContextData

Macros

#define DEBUG_PRINTF(args...)
#define iDEBUG_PRINTF(args...)
#define REQ_CHECK_MEM_BOUNDARIES
#define REQ_CHECK_CONSOLE_VERSION
#define iLink_INTR0_DRFR   0x00000001
#define iLink_INTR0_DRFO   0x00000002
#define iLink_INTR0_TxStk   0x00000040
#define iLink_INTR0_FmtE   0x00000080
#define iLink_INTR0_UResp   0x00000100
#define iLink_INTR0_PBCntR   0x00000200
#define iLink_INTR0_STO   0x00000400
#define iLink_INTR0_RetEx   0x00000800
#define iLink_INTR0_InvAck   0x00001000
#define iLink_INTR0_AckMiss   0x00002000
#define iLink_INTR0_AckRcvd   0x00004000
#define iLink_INTR0_CycArbFl   0x00008000
#define iLink_INTR0_CycLost   0x00010000
#define iLink_INTR0_CycSt   0x00080000
#define iLink_INTR0_CycTL   0x00200000
#define iLink_INTR0_URx   0x00400000
#define iLink_INTR0_SubActGap   0x00800000
#define iLink_INTR0_TCErr   0x01000000
#define iLink_INTR0_HdrErr   0x02000000
#define iLink_INTR0_SntBsyAck   0x04000000
#define iLink_INTR0_CmdRst   0x08000000
#define iLink_INTR0_ArbRstGap   0x10000000
#define iLink_INTR0_PhyRst   0x20000000
#define iLink_INTR0_PhyRRx   0x40000000
#define iLink_INTR0_PhyInt   0x80000000
#define iLink_INTR1_DTFO   0x00000001
#define iLink_INTR1_UTD   0x00000002
#define iLink_CTRL0_URcvM   0x00000010
#define iLink_CTRL0_RSP0   0x00000020
#define iLink_CTRL0_RetLim(x)
#define iLink_CTRL0_LooseTightIso   0x00010000
#define iLink_CTRL0_STardy   0x00020000
#define iLink_CTRL0_BRDE   0x00040000
#define iLink_CTRL0_Root   0x00080000
#define iLink_CTRL0_ExtCyc   0x00100000
#define iLink_CTRL0_CycTmrEn   0x00200000
#define iLink_CTRL0_CMstr   0x00400000
#define iLink_CTRL0_BusIDRst   0x00800000
#define iLink_CTRL0_RxRst   0x01000000
#define iLink_CTRL0_TxRst   0x02000000
#define iLink_CTRL0_RxEn   0x04000000
#define iLink_CTRL0_TxEn   0x08000000
#define iLink_CTRL0_DELim(x)
#define iLink_CTRL0_SIDF   0x40000000
#define iLink_CTRL0_RcvSelfID   0x80000000
#define iLink_CTRL2_LPSRst   0x00000001
#define iLink_CTRL2_LPSEn   0x00000002
#define iLink_CTRL2_SRst   0x00000004
#define iLink_CTRL2_SOK   0x00000008
#define iLinkDMA_CTRL_SR_DWidth(x)
#define iLinkDMA_CTRL_SR_DEn   0x080000
#define iLinkDMA_CTRL_SR_RActl   0x010000
#define iLinkDMA_CTRL_SR_LFirst   0x100000
#define PHT_CTRL_ST_PRBR   0x00000200
#define PHT_CTRL_ST_PStk   0x00000400
#define PHT_CTRL_ST_EnDMAS   0x00001000
#define PHT_CTRL_ST_EBCNT   0x00008000
#define PHT_CTRL_ST_EWREQ   0x00010000
#define PHT_CTRL_ST_ERREQ   0x00020000
#define PHT_CTRL_ST_EPCNT   0x00100000
#define PHT_CTRL_ST_PHTRst   0x00200000
#define PHT_CTRL_ST_IHdr   0x00400000
#define PHT_CTRL_ST_EHdr   0x02000000
#define DBUF_FIFO_RESET_TX   0x00008000
#define DBUF_FIFO_RESET_RX   0x80000000
#define PACKET_TCODE   (((x) >> 4) & 0xF)
#define PHY_CONFIG_PACKET   0xE0
#define PHY_CONFIG_GAP_CNT(x)
#define PHY_CONFIG_T(x)
#define PHY_CONFIG_R(x)
#define PHY_CONFIG_ROOT_ID(x)
#define PHY_SELF_ID_PACKET   0xE1
#define PHY_SELF_ID_PKT_SIG   0x2
#define SELF_ID_SIGNATURE(x)
#define SELF_ID_NODEID(x)
#define SELF_ID_L(x)
#define SELF_ID_GAP_CNT(x)
#define SELF_ID_SPEED(x)
#define SELF_ID_POWER(x)
#define SELF_ID_M(x)
#define REG01_IBR   0x40
#define REG01_RHB   0x80
#define REG04_LCTRL   0x80
#define REG05_ISBR   0x40
#define REG05_EN_ACCL   0x02
#define REG05_EN_MULTI   0x01
#define iLinkEventInterrupt   0x00000001
#define iLinkEventBusReady   0x00000002
#define iLinkEventGotSELFIDs   0x00000004
#define iLinkEventDataSent   0x00000008
#define iLinkEventDataReceived   0x00000010
#define iLinkEventDMATransEnd   0x00000020
#define iLinkEventBusReset   0x00000040
#define iLinkEventURx   0x00000080
#define iLinkEventError   0x80000000
#define IEEE1394_TCODE_WRITEQ   0
#define IEEE1394_TCODE_WRITEB   1
#define IEEE1394_TCODE_WRITE_RESPONSE   2
#define IEEE1394_TCODE_READQ   4
#define IEEE1394_TCODE_READB   5
#define IEEE1394_TCODE_READQ_RESPONSE   6
#define IEEE1394_TCODE_READB_RESPONSE   7
#define ILINK_REGISTER_BASE   0xBF808400
#define ILINK_DMAC_REGISTER_BASE   0xBF801580
#define ILINK_DMAC_DMAR_CTRL_BASE   0xBF8015DC
#define MAX_CONCURRENT_TRANSACTIONS   10
#define DMAC_CHCR_AR   (1 << 31)
#define DMAC_CHCR_11   (1 << 11)

Functions

void UBUFThread (void *arg)
int GetConsoleIDs (u64 *guid, char *ModelName)
void iLinkDisableIntr (void)
int iLinkResetHW (void)
void iLinkShutdownHW (void)
void iLinkHWInitialize (void)
void iLinkEnableCMaster (void)
void iLinkBusEnable (void)
void * malloc (unsigned int nBytes)
void free (void *buffer)
void InitializeConfigurationROM (void)
unsigned char iLinkReadPhy (unsigned char address)
void iLinkWritePhy (unsigned char address, unsigned char data)
void iLinkPHY_SetRootBit (int isRoot)
void iLinkPHY_SetGapCount (unsigned char GapCount)
void iLinkPHY_SetLCTRL (int LCTRL_status)
void iLinkPHYBusReset (void)
int iLinkIntrHandler (void *arg)
void iLinkIntrRegister0Handler (void *arg)
void SendResponse (unsigned short int NodeID, unsigned short RcvdBusID, unsigned char rcode, unsigned char tLabel, unsigned char tCode, unsigned char speed, unsigned int *buffer, unsigned int nQuads)
int iLinkReadReq (struct TransactionContextData *trContext, unsigned short int offset_high, unsigned int offset_low, void *buffer, unsigned int nBytes)
int iLinkWriteReq (struct TransactionContextData *trContext, unsigned short int offset_high, unsigned int offset_low, void *buffer, unsigned int nBytes)
void iLinkInitPHT (void)
void PHTSendResponse (unsigned short int NodeID, unsigned short RcvdBusID, unsigned char rcode, unsigned char tLabel, unsigned char tCode, unsigned char speed, unsigned int *buffer, unsigned int nQuads)
int iLinkReadPHTReq (struct TransactionContextData *trContext, unsigned short int offset_high, unsigned int offset_low, void *buffer, unsigned int nBytes)
int iLinkWritePHTReq (struct TransactionContextData *trContext, unsigned short int offset_high, unsigned int offset_low, void *buffer, unsigned int nBytes)

Macro Definition Documentation

◆ DBUF_FIFO_RESET_RX

#define DBUF_FIFO_RESET_RX   0x80000000

Definition at line 94 of file iLink_internal.h.

◆ DBUF_FIFO_RESET_TX

#define DBUF_FIFO_RESET_TX   0x00008000

Definition at line 93 of file iLink_internal.h.

◆ DEBUG_PRINTF

#define DEBUG_PRINTF ( args...)
Value:
do { \
} while (0)

Definition at line 11 of file iLink_internal.h.

◆ DMAC_CHCR_11

#define DMAC_CHCR_11   (1 << 11)

Definition at line 286 of file iLink_internal.h.

◆ DMAC_CHCR_AR

#define DMAC_CHCR_AR   (1 << 31)

Definition at line 285 of file iLink_internal.h.

◆ iDEBUG_PRINTF

#define iDEBUG_PRINTF ( args...)
Value:
do { \
} while (0)

Definition at line 14 of file iLink_internal.h.

◆ IEEE1394_TCODE_READB

#define IEEE1394_TCODE_READB   5

Definition at line 140 of file iLink_internal.h.

◆ IEEE1394_TCODE_READB_RESPONSE

#define IEEE1394_TCODE_READB_RESPONSE   7

Definition at line 142 of file iLink_internal.h.

◆ IEEE1394_TCODE_READQ

#define IEEE1394_TCODE_READQ   4

Definition at line 139 of file iLink_internal.h.

◆ IEEE1394_TCODE_READQ_RESPONSE

#define IEEE1394_TCODE_READQ_RESPONSE   6

Definition at line 141 of file iLink_internal.h.

◆ IEEE1394_TCODE_WRITE_RESPONSE

#define IEEE1394_TCODE_WRITE_RESPONSE   2

Definition at line 138 of file iLink_internal.h.

◆ IEEE1394_TCODE_WRITEB

#define IEEE1394_TCODE_WRITEB   1

Definition at line 137 of file iLink_internal.h.

◆ IEEE1394_TCODE_WRITEQ

#define IEEE1394_TCODE_WRITEQ   0

Definition at line 136 of file iLink_internal.h.

◆ iLink_CTRL0_BRDE

#define iLink_CTRL0_BRDE   0x00040000

Definition at line 58 of file iLink_internal.h.

◆ iLink_CTRL0_BusIDRst

#define iLink_CTRL0_BusIDRst   0x00800000

Definition at line 63 of file iLink_internal.h.

◆ iLink_CTRL0_CMstr

#define iLink_CTRL0_CMstr   0x00400000

Definition at line 62 of file iLink_internal.h.

◆ iLink_CTRL0_CycTmrEn

#define iLink_CTRL0_CycTmrEn   0x00200000

Definition at line 61 of file iLink_internal.h.

◆ iLink_CTRL0_DELim

#define iLink_CTRL0_DELim ( x)
Value:
(x << 28)

Definition at line 68 of file iLink_internal.h.

◆ iLink_CTRL0_ExtCyc

#define iLink_CTRL0_ExtCyc   0x00100000

Definition at line 60 of file iLink_internal.h.

◆ iLink_CTRL0_LooseTightIso

#define iLink_CTRL0_LooseTightIso   0x00010000

Definition at line 56 of file iLink_internal.h.

◆ iLink_CTRL0_RcvSelfID

#define iLink_CTRL0_RcvSelfID   0x80000000

Definition at line 70 of file iLink_internal.h.

◆ iLink_CTRL0_RetLim

#define iLink_CTRL0_RetLim ( x)
Value:
(x << 12)

Definition at line 55 of file iLink_internal.h.

◆ iLink_CTRL0_Root

#define iLink_CTRL0_Root   0x00080000

Definition at line 59 of file iLink_internal.h.

◆ iLink_CTRL0_RSP0

#define iLink_CTRL0_RSP0   0x00000020

Definition at line 54 of file iLink_internal.h.

◆ iLink_CTRL0_RxEn

#define iLink_CTRL0_RxEn   0x04000000

Definition at line 66 of file iLink_internal.h.

◆ iLink_CTRL0_RxRst

#define iLink_CTRL0_RxRst   0x01000000

Definition at line 64 of file iLink_internal.h.

◆ iLink_CTRL0_SIDF

#define iLink_CTRL0_SIDF   0x40000000

Definition at line 69 of file iLink_internal.h.

◆ iLink_CTRL0_STardy

#define iLink_CTRL0_STardy   0x00020000

Definition at line 57 of file iLink_internal.h.

◆ iLink_CTRL0_TxEn

#define iLink_CTRL0_TxEn   0x08000000

Definition at line 67 of file iLink_internal.h.

◆ iLink_CTRL0_TxRst

#define iLink_CTRL0_TxRst   0x02000000

Definition at line 65 of file iLink_internal.h.

◆ iLink_CTRL0_URcvM

#define iLink_CTRL0_URcvM   0x00000010

Definition at line 53 of file iLink_internal.h.

◆ iLink_CTRL2_LPSEn

#define iLink_CTRL2_LPSEn   0x00000002

Definition at line 73 of file iLink_internal.h.

◆ iLink_CTRL2_LPSRst

#define iLink_CTRL2_LPSRst   0x00000001

Definition at line 72 of file iLink_internal.h.

◆ iLink_CTRL2_SOK

#define iLink_CTRL2_SOK   0x00000008

Definition at line 75 of file iLink_internal.h.

◆ iLink_CTRL2_SRst

#define iLink_CTRL2_SRst   0x00000004

Definition at line 74 of file iLink_internal.h.

◆ ILINK_DMAC_DMAR_CTRL_BASE

#define ILINK_DMAC_DMAR_CTRL_BASE   0xBF8015DC

Definition at line 275 of file iLink_internal.h.

◆ ILINK_DMAC_REGISTER_BASE

#define ILINK_DMAC_REGISTER_BASE   0xBF801580

Definition at line 260 of file iLink_internal.h.

◆ iLink_INTR0_AckMiss

#define iLink_INTR0_AckMiss   0x00002000

Definition at line 33 of file iLink_internal.h.

◆ iLink_INTR0_AckRcvd

#define iLink_INTR0_AckRcvd   0x00004000

Definition at line 34 of file iLink_internal.h.

◆ iLink_INTR0_ArbRstGap

#define iLink_INTR0_ArbRstGap   0x10000000

Definition at line 45 of file iLink_internal.h.

◆ iLink_INTR0_CmdRst

#define iLink_INTR0_CmdRst   0x08000000

Definition at line 44 of file iLink_internal.h.

◆ iLink_INTR0_CycArbFl

#define iLink_INTR0_CycArbFl   0x00008000

Definition at line 35 of file iLink_internal.h.

◆ iLink_INTR0_CycLost

#define iLink_INTR0_CycLost   0x00010000

Definition at line 36 of file iLink_internal.h.

◆ iLink_INTR0_CycSt

#define iLink_INTR0_CycSt   0x00080000

Definition at line 37 of file iLink_internal.h.

◆ iLink_INTR0_CycTL

#define iLink_INTR0_CycTL   0x00200000

Definition at line 38 of file iLink_internal.h.

◆ iLink_INTR0_DRFO

#define iLink_INTR0_DRFO   0x00000002

Definition at line 25 of file iLink_internal.h.

◆ iLink_INTR0_DRFR

#define iLink_INTR0_DRFR   0x00000001

Definition at line 24 of file iLink_internal.h.

◆ iLink_INTR0_FmtE

#define iLink_INTR0_FmtE   0x00000080

Definition at line 27 of file iLink_internal.h.

◆ iLink_INTR0_HdrErr

#define iLink_INTR0_HdrErr   0x02000000

Definition at line 42 of file iLink_internal.h.

◆ iLink_INTR0_InvAck

#define iLink_INTR0_InvAck   0x00001000

Definition at line 32 of file iLink_internal.h.

◆ iLink_INTR0_PBCntR

#define iLink_INTR0_PBCntR   0x00000200

Definition at line 29 of file iLink_internal.h.

◆ iLink_INTR0_PhyInt

#define iLink_INTR0_PhyInt   0x80000000

Definition at line 48 of file iLink_internal.h.

◆ iLink_INTR0_PhyRRx

#define iLink_INTR0_PhyRRx   0x40000000

Definition at line 47 of file iLink_internal.h.

◆ iLink_INTR0_PhyRst

#define iLink_INTR0_PhyRst   0x20000000

Definition at line 46 of file iLink_internal.h.

◆ iLink_INTR0_RetEx

#define iLink_INTR0_RetEx   0x00000800

Definition at line 31 of file iLink_internal.h.

◆ iLink_INTR0_SntBsyAck

#define iLink_INTR0_SntBsyAck   0x04000000

Definition at line 43 of file iLink_internal.h.

◆ iLink_INTR0_STO

#define iLink_INTR0_STO   0x00000400

Definition at line 30 of file iLink_internal.h.

◆ iLink_INTR0_SubActGap

#define iLink_INTR0_SubActGap   0x00800000

Definition at line 40 of file iLink_internal.h.

◆ iLink_INTR0_TCErr

#define iLink_INTR0_TCErr   0x01000000

Definition at line 41 of file iLink_internal.h.

◆ iLink_INTR0_TxStk

#define iLink_INTR0_TxStk   0x00000040

Definition at line 26 of file iLink_internal.h.

◆ iLink_INTR0_UResp

#define iLink_INTR0_UResp   0x00000100

Definition at line 28 of file iLink_internal.h.

◆ iLink_INTR0_URx

#define iLink_INTR0_URx   0x00400000

Definition at line 39 of file iLink_internal.h.

◆ iLink_INTR1_DTFO

#define iLink_INTR1_DTFO   0x00000001

Definition at line 50 of file iLink_internal.h.

◆ iLink_INTR1_UTD

#define iLink_INTR1_UTD   0x00000002

Definition at line 51 of file iLink_internal.h.

◆ ILINK_REGISTER_BASE

#define ILINK_REGISTER_BASE   0xBF808400

Definition at line 160 of file iLink_internal.h.

◆ iLinkDMA_CTRL_SR_DEn

#define iLinkDMA_CTRL_SR_DEn   0x080000

Definition at line 78 of file iLink_internal.h.

◆ iLinkDMA_CTRL_SR_DWidth

#define iLinkDMA_CTRL_SR_DWidth ( x)
Value:
(x << 17)

Definition at line 77 of file iLink_internal.h.

◆ iLinkDMA_CTRL_SR_LFirst

#define iLinkDMA_CTRL_SR_LFirst   0x100000

Definition at line 80 of file iLink_internal.h.

◆ iLinkDMA_CTRL_SR_RActl

#define iLinkDMA_CTRL_SR_RActl   0x010000

Definition at line 79 of file iLink_internal.h.

◆ iLinkEventBusReady

#define iLinkEventBusReady   0x00000002

Definition at line 126 of file iLink_internal.h.

◆ iLinkEventBusReset

#define iLinkEventBusReset   0x00000040

Definition at line 131 of file iLink_internal.h.

◆ iLinkEventDataReceived

#define iLinkEventDataReceived   0x00000010

Definition at line 129 of file iLink_internal.h.

◆ iLinkEventDataSent

#define iLinkEventDataSent   0x00000008

Definition at line 128 of file iLink_internal.h.

◆ iLinkEventDMATransEnd

#define iLinkEventDMATransEnd   0x00000020

Definition at line 130 of file iLink_internal.h.

◆ iLinkEventError

#define iLinkEventError   0x80000000

Definition at line 133 of file iLink_internal.h.

◆ iLinkEventGotSELFIDs

#define iLinkEventGotSELFIDs   0x00000004

Definition at line 127 of file iLink_internal.h.

◆ iLinkEventInterrupt

#define iLinkEventInterrupt   0x00000001

Definition at line 125 of file iLink_internal.h.

◆ iLinkEventURx

#define iLinkEventURx   0x00000080

Definition at line 132 of file iLink_internal.h.

◆ MAX_CONCURRENT_TRANSACTIONS

#define MAX_CONCURRENT_TRANSACTIONS   10

Definition at line 283 of file iLink_internal.h.

◆ PACKET_TCODE

#define PACKET_TCODE   (((x) >> 4) & 0xF)

Definition at line 96 of file iLink_internal.h.

◆ PHT_CTRL_ST_EBCNT

#define PHT_CTRL_ST_EBCNT   0x00008000

Definition at line 85 of file iLink_internal.h.

◆ PHT_CTRL_ST_EHdr

#define PHT_CTRL_ST_EHdr   0x02000000

Definition at line 91 of file iLink_internal.h.

◆ PHT_CTRL_ST_EnDMAS

#define PHT_CTRL_ST_EnDMAS   0x00001000

Definition at line 84 of file iLink_internal.h.

◆ PHT_CTRL_ST_EPCNT

#define PHT_CTRL_ST_EPCNT   0x00100000

Definition at line 88 of file iLink_internal.h.

◆ PHT_CTRL_ST_ERREQ

#define PHT_CTRL_ST_ERREQ   0x00020000

Definition at line 87 of file iLink_internal.h.

◆ PHT_CTRL_ST_EWREQ

#define PHT_CTRL_ST_EWREQ   0x00010000

Definition at line 86 of file iLink_internal.h.

◆ PHT_CTRL_ST_IHdr

#define PHT_CTRL_ST_IHdr   0x00400000

Definition at line 90 of file iLink_internal.h.

◆ PHT_CTRL_ST_PHTRst

#define PHT_CTRL_ST_PHTRst   0x00200000

Definition at line 89 of file iLink_internal.h.

◆ PHT_CTRL_ST_PRBR

#define PHT_CTRL_ST_PRBR   0x00000200

Definition at line 82 of file iLink_internal.h.

◆ PHT_CTRL_ST_PStk

#define PHT_CTRL_ST_PStk   0x00000400

Definition at line 83 of file iLink_internal.h.

◆ PHY_CONFIG_GAP_CNT

#define PHY_CONFIG_GAP_CNT ( x)
Value:
(((x) >> 16) & 0x3F)

Definition at line 100 of file iLink_internal.h.

◆ PHY_CONFIG_PACKET

#define PHY_CONFIG_PACKET   0xE0

Definition at line 99 of file iLink_internal.h.

◆ PHY_CONFIG_R

#define PHY_CONFIG_R ( x)
Value:
(((x) >> 23) & 0x01)

Definition at line 102 of file iLink_internal.h.

◆ PHY_CONFIG_ROOT_ID

#define PHY_CONFIG_ROOT_ID ( x)
Value:
(((x) >> 24) & 0x3F)

Definition at line 103 of file iLink_internal.h.

◆ PHY_CONFIG_T

#define PHY_CONFIG_T ( x)
Value:
(((x) >> 22) & 0x01)

Definition at line 101 of file iLink_internal.h.

◆ PHY_SELF_ID_PACKET

#define PHY_SELF_ID_PACKET   0xE1

Definition at line 106 of file iLink_internal.h.

◆ PHY_SELF_ID_PKT_SIG

#define PHY_SELF_ID_PKT_SIG   0x2

Definition at line 107 of file iLink_internal.h.

◆ REG01_IBR

#define REG01_IBR   0x40

Definition at line 117 of file iLink_internal.h.

◆ REG01_RHB

#define REG01_RHB   0x80

Definition at line 118 of file iLink_internal.h.

◆ REG04_LCTRL

#define REG04_LCTRL   0x80

Definition at line 119 of file iLink_internal.h.

◆ REG05_EN_ACCL

#define REG05_EN_ACCL   0x02

Definition at line 121 of file iLink_internal.h.

◆ REG05_EN_MULTI

#define REG05_EN_MULTI   0x01

Definition at line 122 of file iLink_internal.h.

◆ REG05_ISBR

#define REG05_ISBR   0x40

Definition at line 120 of file iLink_internal.h.

◆ REQ_CHECK_CONSOLE_VERSION

#define REQ_CHECK_CONSOLE_VERSION

Definition at line 20 of file iLink_internal.h.

◆ REQ_CHECK_MEM_BOUNDARIES

#define REQ_CHECK_MEM_BOUNDARIES

Definition at line 19 of file iLink_internal.h.

◆ SELF_ID_GAP_CNT

#define SELF_ID_GAP_CNT ( x)
Value:
(((x) >> 16) & 0x3F)

Definition at line 111 of file iLink_internal.h.

◆ SELF_ID_L

#define SELF_ID_L ( x)
Value:
(((x) >> 22) & 0x01)

Definition at line 110 of file iLink_internal.h.

◆ SELF_ID_M

#define SELF_ID_M ( x)
Value:
((x)&0x01)

Definition at line 114 of file iLink_internal.h.

◆ SELF_ID_NODEID

#define SELF_ID_NODEID ( x)
Value:
(((x) >> 24) & 0x3F)

Definition at line 109 of file iLink_internal.h.

◆ SELF_ID_POWER

#define SELF_ID_POWER ( x)
Value:
(((x) >> 8) & 0x07)

Definition at line 113 of file iLink_internal.h.

◆ SELF_ID_SIGNATURE

#define SELF_ID_SIGNATURE ( x)
Value:
(((x) >> 30) & 0x03)

Definition at line 108 of file iLink_internal.h.

◆ SELF_ID_SPEED

#define SELF_ID_SPEED ( x)
Value:
(((x) >> 14) & 0x03)

Definition at line 112 of file iLink_internal.h.

Function Documentation

◆ free()

void free ( void * buffer)
extern

Definition at line 59 of file main.c.

◆ GetConsoleIDs()

int GetConsoleIDs ( u64 * guid,
char * ModelName )
extern

Definition at line 57 of file iLink_internal.c.

◆ iLinkBusEnable()

void iLinkBusEnable ( void )
extern

Definition at line 179 of file iLink_internal.c.

◆ iLinkDisableIntr()

void iLinkDisableIntr ( void )
extern

Definition at line 79 of file iLink_internal.c.

◆ iLinkEnableCMaster()

void iLinkEnableCMaster ( void )
extern

Definition at line 174 of file iLink_internal.c.

◆ iLinkHWInitialize()

void iLinkHWInitialize ( void )
extern

Definition at line 146 of file iLink_internal.c.

◆ iLinkInitPHT()

void iLinkInitPHT ( void )
extern

Definition at line 32 of file iLink_DMA.c.

◆ iLinkIntrHandler()

int iLinkIntrHandler ( void * arg)
extern

Definition at line 326 of file iLink_intr.c.

◆ iLinkPHY_SetGapCount()

void iLinkPHY_SetGapCount ( unsigned char GapCount)
extern

Definition at line 53 of file iLink_PHY.c.

◆ iLinkPHY_SetLCTRL()

void iLinkPHY_SetLCTRL ( int LCTRL_status)
extern

Definition at line 58 of file iLink_PHY.c.

◆ iLinkPHY_SetRootBit()

void iLinkPHY_SetRootBit ( int isRoot)
extern

Definition at line 40 of file iLink_PHY.c.

◆ iLinkPHYBusReset()

void iLinkPHYBusReset ( void )
extern

Definition at line 71 of file iLink_PHY.c.

◆ iLinkReadPHTReq()

int iLinkReadPHTReq ( struct TransactionContextData * trContext,
unsigned short int offset_high,
unsigned int offset_low,
void * buffer,
unsigned int nBytes )
extern

Definition at line 108 of file iLink_DMA.c.

◆ iLinkReadPhy()

unsigned char iLinkReadPhy ( unsigned char address)
extern

Definition at line 23 of file iLink_PHY.c.

◆ iLinkReadReq()

int iLinkReadReq ( struct TransactionContextData * trContext,
unsigned short int offset_high,
unsigned int offset_low,
void * buffer,
unsigned int nBytes )
extern

Definition at line 138 of file iLink_TxRx.c.

◆ iLinkResetHW()

int iLinkResetHW ( void )
extern

Definition at line 120 of file iLink_internal.c.

◆ iLinkShutdownHW()

void iLinkShutdownHW ( void )
extern

Definition at line 140 of file iLink_internal.c.

◆ iLinkWritePHTReq()

int iLinkWritePHTReq ( struct TransactionContextData * trContext,
unsigned short int offset_high,
unsigned int offset_low,
void * buffer,
unsigned int nBytes )
extern

Definition at line 118 of file iLink_DMA.c.

◆ iLinkWritePhy()

void iLinkWritePhy ( unsigned char address,
unsigned char data )
extern

Definition at line 34 of file iLink_PHY.c.

◆ iLinkWriteReq()

int iLinkWriteReq ( struct TransactionContextData * trContext,
unsigned short int offset_high,
unsigned int offset_low,
void * buffer,
unsigned int nBytes )
extern

Definition at line 165 of file iLink_TxRx.c.

◆ InitializeConfigurationROM()

void InitializeConfigurationROM ( void )
extern

Definition at line 246 of file iLink_crom.c.

◆ malloc()

void * malloc ( unsigned int nBytes)
extern

Definition at line 184 of file iLink_internal.c.

◆ SendResponse()

void SendResponse ( unsigned short int NodeID,
unsigned short RcvdBusID,
unsigned char rcode,
unsigned char tLabel,
unsigned char tCode,
unsigned char speed,
unsigned int * buffer,
unsigned int nQuads )
extern

Definition at line 76 of file iLink_TxRx.c.

◆ UBUFThread()

void UBUFThread ( void * arg)
extern

Definition at line 34 of file iLink_internal.c.