18c2ecf20Sopenharmony_ci/* 28c2ecf20Sopenharmony_ci * Intel i82586 Ethernet definitions 38c2ecf20Sopenharmony_ci * 48c2ecf20Sopenharmony_ci * This is an extension to the Linux operating system, and is covered by the 58c2ecf20Sopenharmony_ci * same Gnu Public License that covers that work. 68c2ecf20Sopenharmony_ci * 78c2ecf20Sopenharmony_ci * copyrights (c) 1994 by Michael Hipp (hippm@informatik.uni-tuebingen.de) 88c2ecf20Sopenharmony_ci * 98c2ecf20Sopenharmony_ci * I have done a look in the following sources: 108c2ecf20Sopenharmony_ci * crynwr-packet-driver by Russ Nelson 118c2ecf20Sopenharmony_ci * Garret A. Wollman's i82586-driver for BSD 128c2ecf20Sopenharmony_ci */ 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* 158c2ecf20Sopenharmony_ci * Cloned from ni52.h, copyright as above. 168c2ecf20Sopenharmony_ci * 178c2ecf20Sopenharmony_ci * Modified for Sun3 OBIO i82586 by Sam Creasey (sammy@sammy.net) 188c2ecf20Sopenharmony_ci */ 198c2ecf20Sopenharmony_ci 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci/* defines for the obio chip (not vme) */ 228c2ecf20Sopenharmony_ci#define IEOB_NORSET 0x80 /* don't reset the board */ 238c2ecf20Sopenharmony_ci#define IEOB_ONAIR 0x40 /* put us on the air */ 248c2ecf20Sopenharmony_ci#define IEOB_ATTEN 0x20 /* attention! */ 258c2ecf20Sopenharmony_ci#define IEOB_IENAB 0x10 /* interrupt enable */ 268c2ecf20Sopenharmony_ci#define IEOB_XXXXX 0x08 /* free bit */ 278c2ecf20Sopenharmony_ci#define IEOB_XCVRL2 0x04 /* level 2 transceiver? */ 288c2ecf20Sopenharmony_ci#define IEOB_BUSERR 0x02 /* bus error */ 298c2ecf20Sopenharmony_ci#define IEOB_INT 0x01 /* interrupt */ 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci/* where the obio one lives */ 328c2ecf20Sopenharmony_ci#define IE_OBIO 0xc0000 338c2ecf20Sopenharmony_ci#define IE_IRQ 3 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci/* 368c2ecf20Sopenharmony_ci * where to find the System Configuration Pointer (SCP) 378c2ecf20Sopenharmony_ci */ 388c2ecf20Sopenharmony_ci#define SCP_DEFAULT_ADDRESS 0xfffff4 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci/* 428c2ecf20Sopenharmony_ci * System Configuration Pointer Struct 438c2ecf20Sopenharmony_ci */ 448c2ecf20Sopenharmony_ci 458c2ecf20Sopenharmony_cistruct scp_struct 468c2ecf20Sopenharmony_ci{ 478c2ecf20Sopenharmony_ci unsigned short zero_dum0; /* has to be zero */ 488c2ecf20Sopenharmony_ci unsigned char sysbus; /* 0=16Bit,1=8Bit */ 498c2ecf20Sopenharmony_ci unsigned char zero_dum1; /* has to be zero for 586 */ 508c2ecf20Sopenharmony_ci unsigned short zero_dum2; 518c2ecf20Sopenharmony_ci unsigned short zero_dum3; 528c2ecf20Sopenharmony_ci char *iscp; /* pointer to the iscp-block */ 538c2ecf20Sopenharmony_ci}; 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci 568c2ecf20Sopenharmony_ci/* 578c2ecf20Sopenharmony_ci * Intermediate System Configuration Pointer (ISCP) 588c2ecf20Sopenharmony_ci */ 598c2ecf20Sopenharmony_cistruct iscp_struct 608c2ecf20Sopenharmony_ci{ 618c2ecf20Sopenharmony_ci unsigned char busy; /* 586 clears after successful init */ 628c2ecf20Sopenharmony_ci unsigned char zero_dummy; /* has to be zero */ 638c2ecf20Sopenharmony_ci unsigned short scb_offset; /* pointeroffset to the scb_base */ 648c2ecf20Sopenharmony_ci char *scb_base; /* base-address of all 16-bit offsets */ 658c2ecf20Sopenharmony_ci}; 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci/* 688c2ecf20Sopenharmony_ci * System Control Block (SCB) 698c2ecf20Sopenharmony_ci */ 708c2ecf20Sopenharmony_cistruct scb_struct 718c2ecf20Sopenharmony_ci{ 728c2ecf20Sopenharmony_ci unsigned char rus; 738c2ecf20Sopenharmony_ci unsigned char cus; 748c2ecf20Sopenharmony_ci unsigned char cmd_ruc; /* command word: RU part */ 758c2ecf20Sopenharmony_ci unsigned char cmd_cuc; /* command word: CU part & ACK */ 768c2ecf20Sopenharmony_ci unsigned short cbl_offset; /* pointeroffset, command block list */ 778c2ecf20Sopenharmony_ci unsigned short rfa_offset; /* pointeroffset, receive frame area */ 788c2ecf20Sopenharmony_ci unsigned short crc_errs; /* CRC-Error counter */ 798c2ecf20Sopenharmony_ci unsigned short aln_errs; /* allignmenterror counter */ 808c2ecf20Sopenharmony_ci unsigned short rsc_errs; /* Resourceerror counter */ 818c2ecf20Sopenharmony_ci unsigned short ovrn_errs; /* OVerrunerror counter */ 828c2ecf20Sopenharmony_ci}; 838c2ecf20Sopenharmony_ci 848c2ecf20Sopenharmony_ci/* 858c2ecf20Sopenharmony_ci * possible command values for the command word 868c2ecf20Sopenharmony_ci */ 878c2ecf20Sopenharmony_ci#define RUC_MASK 0x0070 /* mask for RU commands */ 888c2ecf20Sopenharmony_ci#define RUC_NOP 0x0000 /* NOP-command */ 898c2ecf20Sopenharmony_ci#define RUC_START 0x0010 /* start RU */ 908c2ecf20Sopenharmony_ci#define RUC_RESUME 0x0020 /* resume RU after suspend */ 918c2ecf20Sopenharmony_ci#define RUC_SUSPEND 0x0030 /* suspend RU */ 928c2ecf20Sopenharmony_ci#define RUC_ABORT 0x0040 /* abort receiver operation immediately */ 938c2ecf20Sopenharmony_ci 948c2ecf20Sopenharmony_ci#define CUC_MASK 0x07 /* mask for CU command */ 958c2ecf20Sopenharmony_ci#define CUC_NOP 0x00 /* NOP-command */ 968c2ecf20Sopenharmony_ci#define CUC_START 0x01 /* start execution of 1. cmd on the CBL */ 978c2ecf20Sopenharmony_ci#define CUC_RESUME 0x02 /* resume after suspend */ 988c2ecf20Sopenharmony_ci#define CUC_SUSPEND 0x03 /* Suspend CU */ 998c2ecf20Sopenharmony_ci#define CUC_ABORT 0x04 /* abort command operation immediately */ 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci#define ACK_MASK 0xf0 /* mask for ACK command */ 1028c2ecf20Sopenharmony_ci#define ACK_CX 0x80 /* acknowledges STAT_CX */ 1038c2ecf20Sopenharmony_ci#define ACK_FR 0x40 /* ack. STAT_FR */ 1048c2ecf20Sopenharmony_ci#define ACK_CNA 0x20 /* ack. STAT_CNA */ 1058c2ecf20Sopenharmony_ci#define ACK_RNR 0x10 /* ack. STAT_RNR */ 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci/* 1088c2ecf20Sopenharmony_ci * possible status values for the status word 1098c2ecf20Sopenharmony_ci */ 1108c2ecf20Sopenharmony_ci#define STAT_MASK 0xf0 /* mask for cause of interrupt */ 1118c2ecf20Sopenharmony_ci#define STAT_CX 0x80 /* CU finished cmd with its I bit set */ 1128c2ecf20Sopenharmony_ci#define STAT_FR 0x40 /* RU finished receiving a frame */ 1138c2ecf20Sopenharmony_ci#define STAT_CNA 0x20 /* CU left active state */ 1148c2ecf20Sopenharmony_ci#define STAT_RNR 0x10 /* RU left ready state */ 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ci#define CU_STATUS 0x7 /* CU status, 0=idle */ 1178c2ecf20Sopenharmony_ci#define CU_SUSPEND 0x1 /* CU is suspended */ 1188c2ecf20Sopenharmony_ci#define CU_ACTIVE 0x2 /* CU is active */ 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci#define RU_STATUS 0x70 /* RU status, 0=idle */ 1218c2ecf20Sopenharmony_ci#define RU_SUSPEND 0x10 /* RU suspended */ 1228c2ecf20Sopenharmony_ci#define RU_NOSPACE 0x20 /* RU no resources */ 1238c2ecf20Sopenharmony_ci#define RU_READY 0x40 /* RU is ready */ 1248c2ecf20Sopenharmony_ci 1258c2ecf20Sopenharmony_ci/* 1268c2ecf20Sopenharmony_ci * Receive Frame Descriptor (RFD) 1278c2ecf20Sopenharmony_ci */ 1288c2ecf20Sopenharmony_cistruct rfd_struct 1298c2ecf20Sopenharmony_ci{ 1308c2ecf20Sopenharmony_ci unsigned char stat_low; /* status word */ 1318c2ecf20Sopenharmony_ci unsigned char stat_high; /* status word */ 1328c2ecf20Sopenharmony_ci unsigned char rfd_sf; /* 82596 mode only */ 1338c2ecf20Sopenharmony_ci unsigned char last; /* Bit15,Last Frame on List / Bit14,suspend */ 1348c2ecf20Sopenharmony_ci unsigned short next; /* linkoffset to next RFD */ 1358c2ecf20Sopenharmony_ci unsigned short rbd_offset; /* pointeroffset to RBD-buffer */ 1368c2ecf20Sopenharmony_ci unsigned char dest[ETH_ALEN]; /* ethernet-address, destination */ 1378c2ecf20Sopenharmony_ci unsigned char source[ETH_ALEN]; /* ethernet-address, source */ 1388c2ecf20Sopenharmony_ci unsigned short length; /* 802.3 frame-length */ 1398c2ecf20Sopenharmony_ci unsigned short zero_dummy; /* dummy */ 1408c2ecf20Sopenharmony_ci}; 1418c2ecf20Sopenharmony_ci 1428c2ecf20Sopenharmony_ci#define RFD_LAST 0x80 /* last: last rfd in the list */ 1438c2ecf20Sopenharmony_ci#define RFD_SUSP 0x40 /* last: suspend RU after */ 1448c2ecf20Sopenharmony_ci#define RFD_COMPL 0x80 1458c2ecf20Sopenharmony_ci#define RFD_OK 0x20 1468c2ecf20Sopenharmony_ci#define RFD_BUSY 0x40 1478c2ecf20Sopenharmony_ci#define RFD_ERR_LEN 0x10 /* Length error (if enabled length-checking */ 1488c2ecf20Sopenharmony_ci#define RFD_ERR_CRC 0x08 /* CRC error */ 1498c2ecf20Sopenharmony_ci#define RFD_ERR_ALGN 0x04 /* Alignment error */ 1508c2ecf20Sopenharmony_ci#define RFD_ERR_RNR 0x02 /* status: receiver out of resources */ 1518c2ecf20Sopenharmony_ci#define RFD_ERR_OVR 0x01 /* DMA Overrun! */ 1528c2ecf20Sopenharmony_ci 1538c2ecf20Sopenharmony_ci#define RFD_ERR_FTS 0x0080 /* Frame to short */ 1548c2ecf20Sopenharmony_ci#define RFD_ERR_NEOP 0x0040 /* No EOP flag (for bitstuffing only) */ 1558c2ecf20Sopenharmony_ci#define RFD_ERR_TRUN 0x0020 /* (82596 only/SF mode) indicates truncated frame */ 1568c2ecf20Sopenharmony_ci#define RFD_MATCHADD 0x0002 /* status: Destinationaddress !matches IA (only 82596) */ 1578c2ecf20Sopenharmony_ci#define RFD_COLLDET 0x0001 /* Detected collision during reception */ 1588c2ecf20Sopenharmony_ci 1598c2ecf20Sopenharmony_ci/* 1608c2ecf20Sopenharmony_ci * Receive Buffer Descriptor (RBD) 1618c2ecf20Sopenharmony_ci */ 1628c2ecf20Sopenharmony_cistruct rbd_struct 1638c2ecf20Sopenharmony_ci{ 1648c2ecf20Sopenharmony_ci unsigned short status; /* status word,number of used bytes in buff */ 1658c2ecf20Sopenharmony_ci unsigned short next; /* pointeroffset to next RBD */ 1668c2ecf20Sopenharmony_ci char *buffer; /* receive buffer address pointer */ 1678c2ecf20Sopenharmony_ci unsigned short size; /* size of this buffer */ 1688c2ecf20Sopenharmony_ci unsigned short zero_dummy; /* dummy */ 1698c2ecf20Sopenharmony_ci}; 1708c2ecf20Sopenharmony_ci 1718c2ecf20Sopenharmony_ci#define RBD_LAST 0x8000 /* last buffer */ 1728c2ecf20Sopenharmony_ci#define RBD_USED 0x4000 /* this buffer has data */ 1738c2ecf20Sopenharmony_ci#define RBD_MASK 0x3fff /* size-mask for length */ 1748c2ecf20Sopenharmony_ci 1758c2ecf20Sopenharmony_ci/* 1768c2ecf20Sopenharmony_ci * Statusvalues for Commands/RFD 1778c2ecf20Sopenharmony_ci */ 1788c2ecf20Sopenharmony_ci#define STAT_COMPL 0x8000 /* status: frame/command is complete */ 1798c2ecf20Sopenharmony_ci#define STAT_BUSY 0x4000 /* status: frame/command is busy */ 1808c2ecf20Sopenharmony_ci#define STAT_OK 0x2000 /* status: frame/command is ok */ 1818c2ecf20Sopenharmony_ci 1828c2ecf20Sopenharmony_ci/* 1838c2ecf20Sopenharmony_ci * Action-Commands 1848c2ecf20Sopenharmony_ci */ 1858c2ecf20Sopenharmony_ci#define CMD_NOP 0x0000 /* NOP */ 1868c2ecf20Sopenharmony_ci#define CMD_IASETUP 0x0001 /* initial address setup command */ 1878c2ecf20Sopenharmony_ci#define CMD_CONFIGURE 0x0002 /* configure command */ 1888c2ecf20Sopenharmony_ci#define CMD_MCSETUP 0x0003 /* MC setup command */ 1898c2ecf20Sopenharmony_ci#define CMD_XMIT 0x0004 /* transmit command */ 1908c2ecf20Sopenharmony_ci#define CMD_TDR 0x0005 /* time domain reflectometer (TDR) command */ 1918c2ecf20Sopenharmony_ci#define CMD_DUMP 0x0006 /* dump command */ 1928c2ecf20Sopenharmony_ci#define CMD_DIAGNOSE 0x0007 /* diagnose command */ 1938c2ecf20Sopenharmony_ci 1948c2ecf20Sopenharmony_ci/* 1958c2ecf20Sopenharmony_ci * Action command bits 1968c2ecf20Sopenharmony_ci */ 1978c2ecf20Sopenharmony_ci#define CMD_LAST 0x8000 /* indicates last command in the CBL */ 1988c2ecf20Sopenharmony_ci#define CMD_SUSPEND 0x4000 /* suspend CU after this CB */ 1998c2ecf20Sopenharmony_ci#define CMD_INT 0x2000 /* generate interrupt after execution */ 2008c2ecf20Sopenharmony_ci 2018c2ecf20Sopenharmony_ci/* 2028c2ecf20Sopenharmony_ci * NOP - command 2038c2ecf20Sopenharmony_ci */ 2048c2ecf20Sopenharmony_cistruct nop_cmd_struct 2058c2ecf20Sopenharmony_ci{ 2068c2ecf20Sopenharmony_ci unsigned short cmd_status; /* status of this command */ 2078c2ecf20Sopenharmony_ci unsigned short cmd_cmd; /* the command itself (+bits) */ 2088c2ecf20Sopenharmony_ci unsigned short cmd_link; /* offsetpointer to next command */ 2098c2ecf20Sopenharmony_ci}; 2108c2ecf20Sopenharmony_ci 2118c2ecf20Sopenharmony_ci/* 2128c2ecf20Sopenharmony_ci * IA Setup command 2138c2ecf20Sopenharmony_ci */ 2148c2ecf20Sopenharmony_cistruct iasetup_cmd_struct 2158c2ecf20Sopenharmony_ci{ 2168c2ecf20Sopenharmony_ci unsigned short cmd_status; 2178c2ecf20Sopenharmony_ci unsigned short cmd_cmd; 2188c2ecf20Sopenharmony_ci unsigned short cmd_link; 2198c2ecf20Sopenharmony_ci unsigned char iaddr[6]; 2208c2ecf20Sopenharmony_ci}; 2218c2ecf20Sopenharmony_ci 2228c2ecf20Sopenharmony_ci/* 2238c2ecf20Sopenharmony_ci * Configure command 2248c2ecf20Sopenharmony_ci */ 2258c2ecf20Sopenharmony_cistruct configure_cmd_struct 2268c2ecf20Sopenharmony_ci{ 2278c2ecf20Sopenharmony_ci unsigned short cmd_status; 2288c2ecf20Sopenharmony_ci unsigned short cmd_cmd; 2298c2ecf20Sopenharmony_ci unsigned short cmd_link; 2308c2ecf20Sopenharmony_ci unsigned char byte_cnt; /* size of the config-cmd */ 2318c2ecf20Sopenharmony_ci unsigned char fifo; /* fifo/recv monitor */ 2328c2ecf20Sopenharmony_ci unsigned char sav_bf; /* save bad frames (bit7=1)*/ 2338c2ecf20Sopenharmony_ci unsigned char adr_len; /* adr_len(0-2),al_loc(3),pream(4-5),loopbak(6-7)*/ 2348c2ecf20Sopenharmony_ci unsigned char priority; /* lin_prio(0-2),exp_prio(4-6),bof_metd(7) */ 2358c2ecf20Sopenharmony_ci unsigned char ifs; /* inter frame spacing */ 2368c2ecf20Sopenharmony_ci unsigned char time_low; /* slot time low */ 2378c2ecf20Sopenharmony_ci unsigned char time_high; /* slot time high(0-2) and max. retries(4-7) */ 2388c2ecf20Sopenharmony_ci unsigned char promisc; /* promisc-mode(0) , et al (1-7) */ 2398c2ecf20Sopenharmony_ci unsigned char carr_coll; /* carrier(0-3)/collision(4-7) stuff */ 2408c2ecf20Sopenharmony_ci unsigned char fram_len; /* minimal frame len */ 2418c2ecf20Sopenharmony_ci unsigned char dummy; /* dummy */ 2428c2ecf20Sopenharmony_ci}; 2438c2ecf20Sopenharmony_ci 2448c2ecf20Sopenharmony_ci/* 2458c2ecf20Sopenharmony_ci * Multicast Setup command 2468c2ecf20Sopenharmony_ci */ 2478c2ecf20Sopenharmony_cistruct mcsetup_cmd_struct 2488c2ecf20Sopenharmony_ci{ 2498c2ecf20Sopenharmony_ci unsigned short cmd_status; 2508c2ecf20Sopenharmony_ci unsigned short cmd_cmd; 2518c2ecf20Sopenharmony_ci unsigned short cmd_link; 2528c2ecf20Sopenharmony_ci unsigned short mc_cnt; /* number of bytes in the MC-List */ 2538c2ecf20Sopenharmony_ci unsigned char mc_list[0][6]; /* pointer to 6 bytes entries */ 2548c2ecf20Sopenharmony_ci}; 2558c2ecf20Sopenharmony_ci 2568c2ecf20Sopenharmony_ci/* 2578c2ecf20Sopenharmony_ci * DUMP command 2588c2ecf20Sopenharmony_ci */ 2598c2ecf20Sopenharmony_cistruct dump_cmd_struct 2608c2ecf20Sopenharmony_ci{ 2618c2ecf20Sopenharmony_ci unsigned short cmd_status; 2628c2ecf20Sopenharmony_ci unsigned short cmd_cmd; 2638c2ecf20Sopenharmony_ci unsigned short cmd_link; 2648c2ecf20Sopenharmony_ci unsigned short dump_offset; /* pointeroffset to DUMP space */ 2658c2ecf20Sopenharmony_ci}; 2668c2ecf20Sopenharmony_ci 2678c2ecf20Sopenharmony_ci/* 2688c2ecf20Sopenharmony_ci * transmit command 2698c2ecf20Sopenharmony_ci */ 2708c2ecf20Sopenharmony_cistruct transmit_cmd_struct 2718c2ecf20Sopenharmony_ci{ 2728c2ecf20Sopenharmony_ci unsigned short cmd_status; 2738c2ecf20Sopenharmony_ci unsigned short cmd_cmd; 2748c2ecf20Sopenharmony_ci unsigned short cmd_link; 2758c2ecf20Sopenharmony_ci unsigned short tbd_offset; /* pointeroffset to TBD */ 2768c2ecf20Sopenharmony_ci unsigned char dest[6]; /* destination address of the frame */ 2778c2ecf20Sopenharmony_ci unsigned short length; /* user defined: 802.3 length / Ether type */ 2788c2ecf20Sopenharmony_ci}; 2798c2ecf20Sopenharmony_ci 2808c2ecf20Sopenharmony_ci#define TCMD_ERRMASK 0x0fa0 2818c2ecf20Sopenharmony_ci#define TCMD_MAXCOLLMASK 0x000f 2828c2ecf20Sopenharmony_ci#define TCMD_MAXCOLL 0x0020 2838c2ecf20Sopenharmony_ci#define TCMD_HEARTBEAT 0x0040 2848c2ecf20Sopenharmony_ci#define TCMD_DEFERRED 0x0080 2858c2ecf20Sopenharmony_ci#define TCMD_UNDERRUN 0x0100 2868c2ecf20Sopenharmony_ci#define TCMD_LOSTCTS 0x0200 2878c2ecf20Sopenharmony_ci#define TCMD_NOCARRIER 0x0400 2888c2ecf20Sopenharmony_ci#define TCMD_LATECOLL 0x0800 2898c2ecf20Sopenharmony_ci 2908c2ecf20Sopenharmony_cistruct tdr_cmd_struct 2918c2ecf20Sopenharmony_ci{ 2928c2ecf20Sopenharmony_ci unsigned short cmd_status; 2938c2ecf20Sopenharmony_ci unsigned short cmd_cmd; 2948c2ecf20Sopenharmony_ci unsigned short cmd_link; 2958c2ecf20Sopenharmony_ci unsigned short status; 2968c2ecf20Sopenharmony_ci}; 2978c2ecf20Sopenharmony_ci 2988c2ecf20Sopenharmony_ci#define TDR_LNK_OK 0x8000 /* No link problem identified */ 2998c2ecf20Sopenharmony_ci#define TDR_XCVR_PRB 0x4000 /* indicates a transceiver problem */ 3008c2ecf20Sopenharmony_ci#define TDR_ET_OPN 0x2000 /* open, no correct termination */ 3018c2ecf20Sopenharmony_ci#define TDR_ET_SRT 0x1000 /* TDR detected a short circuit */ 3028c2ecf20Sopenharmony_ci#define TDR_TIMEMASK 0x07ff /* mask for the time field */ 3038c2ecf20Sopenharmony_ci 3048c2ecf20Sopenharmony_ci/* 3058c2ecf20Sopenharmony_ci * Transmit Buffer Descriptor (TBD) 3068c2ecf20Sopenharmony_ci */ 3078c2ecf20Sopenharmony_cistruct tbd_struct 3088c2ecf20Sopenharmony_ci{ 3098c2ecf20Sopenharmony_ci unsigned short size; /* size + EOF-Flag(15) */ 3108c2ecf20Sopenharmony_ci unsigned short next; /* pointeroffset to next TBD */ 3118c2ecf20Sopenharmony_ci char *buffer; /* pointer to buffer */ 3128c2ecf20Sopenharmony_ci}; 3138c2ecf20Sopenharmony_ci 3148c2ecf20Sopenharmony_ci#define TBD_LAST 0x8000 /* EOF-Flag, indicates last buffer in list */ 3158c2ecf20Sopenharmony_ci 3168c2ecf20Sopenharmony_ci 3178c2ecf20Sopenharmony_ci 3188c2ecf20Sopenharmony_ci 319