amd_softc
amd_DataOutPhase0(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
static void amdsetupcommand(struct amd_softc *amd, struct amd_srb *srb);
static int amdparsemsg(struct amd_softc *amd);
static int amdhandlemsgreject(struct amd_softc *amd);
static void amdconstructsdtr(struct amd_softc *amd,
amd_DataInPhase0(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
static u_int amdfindclockrate(struct amd_softc *amd, u_int *period);
static int amdsentmsg(struct amd_softc *amd, u_int msgtype, int full);
static void DataIO_Comm(struct amd_softc *amd, struct amd_srb *pSRB, u_int dir);
static void amd_Disconnect(struct amd_softc *amd);
static void amd_Reselect(struct amd_softc *amd);
static void SRBdone(struct amd_softc *amd, struct amd_srb *pSRB);
amd_StatusPhase0(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
static void amd_ScsiRstDetect(struct amd_softc *amd);
amd_MsgOutPhase0(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
static void amd_ResetSCSIBus(struct amd_softc *amd);
amd_MsgInPhase0(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
static void RequestSense(struct amd_softc *amd, struct amd_srb *pSRB);
amdparsemsg(struct amd_softc *amd)
static void amd_InvalidCmd(struct amd_softc *amd);
static void amd_reset(struct amd_softc *amd);
void amd_linkSRB(struct amd_softc *amd);
static void amd_load_defaults(struct amd_softc *amd);
static void amd_load_eeprom_or_defaults(struct amd_softc *amd);
static int amd_EEpromInDO(struct amd_softc *amd);
static u_int16_t EEpromGetData1(struct amd_softc *amd);
static void amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval);
static void amd_EEpromOutDI(struct amd_softc *amd, int *regval, int Carry);
amdfindclockrate(struct amd_softc *amd, u_int *period)
static void amd_Prepare(struct amd_softc *amd, int *regval, u_int8_t EEpromCmd);
static void amd_ReadEEprom(struct amd_softc *amd);
amdsentmsg(struct amd_softc *amd, u_int msgtype, int full)
static void amdcompletematch(struct amd_softc *amd, target_id_t target,
static void amdsetsync(struct amd_softc *amd, u_int target, u_int clockrate,
amdconstructsdtr(struct amd_softc *amd, u_int period, u_int offset)
amdhandlemsgreject(struct amd_softc *amd)
static void amdsettags(struct amd_softc *amd, u_int target, int tagenb);
static __inline void amd_clear_msg_state(struct amd_softc *amd);
amd_clear_msg_state(struct amd_softc *amd)
amd_DataOutPhase1(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
amd_DataInPhase1(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
DataIO_Comm(struct amd_softc *amd, struct amd_srb *pSRB, u_int ioDir)
amd_CommandPhase1(struct amd_softc *amd, struct amd_srb *srb, u_int scsistat)
amd_StatusPhase1(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
amd_MsgOutPhase1(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
amd_MsgInPhase1(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
amd_NopPhase(struct amd_softc *amd, struct amd_srb *pSRB, u_int scsistat)
amd_Disconnect(struct amd_softc * amd)
amd_Reselect(struct amd_softc *amd)
SRBdone(struct amd_softc *amd, struct amd_srb *pSRB)
amd_ResetSCSIBus(struct amd_softc * amd)
amd_ScsiRstDetect(struct amd_softc * amd)
RequestSense(struct amd_softc *amd, struct amd_srb *pSRB)
amd_InvalidCmd(struct amd_softc * amd)
amd_linkSRB(struct amd_softc *amd)
amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval)
amd_EEpromOutDI(struct amd_softc *amd, int *regval, int Carry)
amd_EEpromInDO(struct amd_softc *amd)
EEpromGetData1(struct amd_softc *amd)
amd_Prepare(struct amd_softc *amd, int *regval, u_int8_t EEpromCmd)
amdgetsrb(struct amd_softc * amd)
amd_ReadEEprom(struct amd_softc *amd)
amd_load_defaults(struct amd_softc *amd)
amd_load_eeprom_or_defaults(struct amd_softc *amd)
struct amd_softc *amd = device_get_softc(dev);
amdsetupcommand(struct amd_softc *amd, struct amd_srb *srb)
struct amd_softc *amd = device_get_softc(dev);
"amd", amd_methods, sizeof(struct amd_softc)
amdrunwaiting(struct amd_softc *amd) {
struct amd_softc *amd;
amd = (struct amd_softc *)ccb->ccb_h.ccb_amd_ptr;
struct amd_softc * amd;
amd = (struct amd_softc *) cam_sim_softc(psim);
ResetDevParam(struct amd_softc * amd)
amdcompletematch(struct amd_softc *amd, target_id_t target, lun_id_t lun,
amdsetsync(struct amd_softc *amd, u_int target, u_int clockrate,
amdsettags(struct amd_softc *amd, u_int target, int tagenb)
typedef u_int (phase_handler_t)(struct amd_softc *, struct amd_srb *, u_int);
amd_reset(struct amd_softc * amd)
static int amdstart(struct amd_softc *amd, struct amd_srb * pSRB);
amdstart(struct amd_softc *amd, struct amd_srb *pSRB)
struct amd_softc *amd;
amd = (struct amd_softc *)arg;