|
|
|
|
|
|
|
||
|
||
|
|
||
May 1999 |
Revision 1.00 |
|
Persistor Instruments Inc. |
© 1998 All rights reserved. |
|
![]()
#define BIA_DEFAULT_SCB 0 // CS8, offset 0 {0,0,0}
#define BIA_SCS_TYPE_ID 1000 // SandwichCard Supervisor ID for BigIDEAs
#define BIA_DEFAULT_NS 150 // 150ns access
// For the following enums: xxxChkBsyDelay is the time we wait from the first
// application of power until we trust that the busy bit returned from the
// attached device is valid. xxxStartupTimeout is the maximum time from the
// first application of power that we will wait (when instructed to wait) for
// the attached device to return a not busy value.
enum
{
DefaultStartupTimeout = 30000000 // 30 seconds
, DefaultChkBsyDelay = 1000000 // 1 second
, SmallHardDiskStartupTimeout = 10000000 // 10 seconds (typ. 4s)
, SmallHardDiskChkBsyDelay = 10000 // 10ms
, PCMCIAHardDiskStartupTimeout = 2000000 // 2 seconds (typ. <1s)
, PCMCIAHardDiskChkBsyDelay = 10000 // 10ms
, ATAFLashStartupTimeout = 1000000 // 1 seconds (typ. 550ms)
, ATAFLashChkBsyDelay = 1000 // 1ms (is actually 150-250us)
};
typedef struct
{
bool poweron : 1; // we're applying power to the drive
bool spinup : 1; // drive is spinning up and not yet online
bool online : 1; // drive should be up and running
bool busy : 1; // drive currently busy (online must be valid)
bool ready : 1; // online and not busy
bool timedout : 1; // spinup timed out waiting for not busy
} BIAST;
#define BIA_HD_DRIVER_NAME "BI25" // driver name for BigIDEA with generic hard disk
#define BIA_25_DRIVER_NAME "BI25" // driver name for BigIDEA with 2.5" hard disk
#define BIA_18_DRIVER_NAME "BI18" // driver name for BigIDEA with PCMCIA disk
#define BIA_FCM_DRIVER_NAME "BFCM" // master flash card, CSEL grounded, card 0
#define BIA_FCS_DRIVER_NAME "BFCS" // slave flash card, CSEL open, card 1
typedef enum
{
BIAHD // generic IDE hard drive
, BIA25 // 2.5" hard drive
, BIA18 // 1.8" PCMCIA hard drive
, BIAFCM // ATA flash card master
, BIAFCS // ATA flash card slave
, BIA_DEV_TYPES // number of know driver types
} BIADEV;
Description
|
Prototype: |
bool BIAInit(BIADEV device, ushort scms, ushort index, short nsAccess); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
device XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
void BIAReviseTiming(BIADEV device, ulong chkBsyDelay, ulong spinUpTimeout ); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
device XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
ATADvr BIAGetDriver(BIADEV device); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
device XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
bool BIAPowerUp(bool waitready); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
waitready XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
void BIAShutDown(void); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
none |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
BIAST BIAGetStatus(void); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
none |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
char BIAGetStatusString(void); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
none |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
bool BIACheckReady(bool waitready); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
waitready XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
vfptr BIAInstallPreIOFunction(vfptr pf); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
pf XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
float BIATempC(void); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
none |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
void BIADrivePower(bool on); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
on XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
Description
|
Prototype: |
void BIADriveReset (bool assert); |
|
Definition: |
#include <cf1pico.h> |
|
Inputs: |
assert XXXXX |
|
Returns: |
XXXXX |
|
Notes: |
XXXXX |
|
Timing: |
TBD |
|
|
|
|
|
|
Tel: 508-759-6434 |
|
Fax: 508-759-6436 |
|
|
||