分类: LINUX
2009-06-17 21:47:21
| Tuple Parsing Function | Description |
|---|---|
| csx_Parse_CISTPL_DEVICE(9F) | Device information |
| csx_Parse_CISTPL_CHECKSUM(9F) | Checksum control |
| csx_Parse_CISTPL_LONGLINK_A(9F) | Long-link to attribute memory |
| csx_Parse_CISTPL_LONGLINK_C(9F) | Long-link to common memory |
| csx_Parse_CISTPL_LONGLINK_MFC(9F) | Multifunction |
| csx_Parse_CISTPL_LINKTARGET(9F) | Link target control |
| csx_Parse_CISTPL_NO_LINK(9F) | No link control |
| csx_Parse_CISTPL_VERS_1(9F) | Level 1 version information |
| csx_Parse_CISTPL_ALTSTR(9F) | Alternate language string |
| csx_Parse_CISTPL_DEVICE_A(9F) | Attribute memory device information |
| csx_Parse_CISTPL_JEDEC_C(9F) | JEDEC programming information for common memory |
| csx_Parse_CISTPL_JEDEC_A(9F) | JEDEC programming information for attribute memory |
| csx_Parse_CISTPL_CONFIG(9F) | Configuration |
| Tuple Parsing Function | Description |
|---|---|
| csx_Parse_CISTPL_CFTABLE_ENTRY(9F csx_Parse_CISTPL_DEVICE_OC(9F) |
Configuration table entry Device information under a set of operating conditions for common memory |
| csx_Parse_CISTPL_DEVICE_OA(9F) | Device information under a set of operating conditions for attribute memory |
| csx_Parse_CISTPL_MANFID(9F) | Manufacturer identification |
| csx_Parse_CISTPL_FUNCID(9F) | Function identification |
| csx_Parse_CISTPL_FUNCE(9F) | Function extension |
| csx_Parse_CISTPL_SWIL(9F) | Software interleave |
| csx_Parse_CISTPL_VERS_2(9F) | Level 2 version information |
| csx_Parse_CISTPL_FORMAT(9F) | Format type |
| csx_Parse_CISTPL_GEOMETRY(9F) | Geometry |
| csx_Parse_CISTPL_BYTEORDER(9F) | Byte order |
| csx_Parse_CISTPL_DATE(9F) | Card initialization date |
| csx_Parse_CISTPL_BATTERY(9F) | Battery replacement date |
| csx_Parse_CISTPL_ORG(9F) | Organization |
| csx_Parse_CISTPL_SPCL(9F) | Special purpose |
| csx_ParseTuple(9F) | Generic tuple parser entry point |
pcser "pccard,Intel_MODEM_2400+"
pcser "pccard,Intel_MODEM"
"Intel_MODEM" "Intel_MODEM_2400+" "Intel_MODEM_2400+_iNC110US"
pcxxx "pccard,serial" pcyyy "pccard,Intel_MODEM_2400+_iNC110US" pczzz "pccard123,456"
CISTPL_FUNCID = "serial"
CISTPL_VERS_1 = "Acme Serial Card"
CISTPL_MANFID = "654,321"
CISTPL_FUNCID = "serial" CISTPL_MANFID = "654,321" CISTPL_VERS_1 = "Intel_MODEM_2400+"
CISTPL_FUNCID = "serial"
CISTPL_MANFID = "123,456"
CISTPL_VERS_1 = "Intel_MODEM_2400+"
· ethernet (if the sys extension tuple funce is present)
· token-ring (if the sys extension tuple funce is present)
· localtalk
· fddi
· atm
· wireless
· reserved
| Card Type | Generic Device Name |
|---|---|
| Memory nexus | memory |
| SRAM memory | pcram |
| Modem/Serial | serial |
| 3COM EtherLinkIII | network |
| ATA card | disk |
| Tuple Utility Function | Description |
|---|---|
| csx_ConvertSize(9F) | Converts device size units from Card Services internal representation to bytes and vice versa. |
| csx_ConvertSpeed(9F) | Converts device speed units from Card Services internal representation to nanoseconds and vice versa. |
pcsram_state_t *rs;
int ret;
win_req_t win_req;
convert_speed_t convert_speed;
/ * Get a memory window for Common Memory space */
win_req.Attributes = (WIN_MEMORY_TYPE_CM |
WIN_DATA_WIDTH_16 |
WIN_ENABLE |
WIN_ACC_NEVER_SWAP |
WIN_ACC_STRICT_ORDER);
win_req.Base.base = 0; /*let CardService find us a base addr */
win_req.Size = 0; /* let CardService return the smallest */
/* size window it finds */
/* Use csx_ConvertSpeed(9F) function to generate the */
/* appropriate AccessSpeed code unit. */
convert_speed.Attributes = CONVERT_NS_TO_DEVSPEED;
convert_speed.nS = 250;
csx_ConvertSpeed(&convert_speed);
win_req.win_params.AccessSpeed = convert_speed.devspeed;
if ((ret = csx_RequestWindow(rs->client_handle,
&rs->window_handle, &win_req)) != CS_SUCCESS) {
error2text_tcft;
cft.item = ret;
csx_Error2Text(&cft);
cmn_err(CE_CONT, "pcsram: RequestWindow failed %s
(0x%x)\n", cft.text, ret);
return (ret);
};