/* @(#)54 1.1 src/rspc/kernext/isa/itok/itok_ddi.h, isatok, rspc410, 9428A410 5/2/94 16:00:08 */ /* * COMPONENT_NAME: ISATOK - IBM 16/4 PowerPC Token-ring driver. * * FUNCTIONS: none * * ORIGINS: 27 * * (C) COPYRIGHT International Business Machines Corp. 1994 * All Rights Reserved * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ /* This sample will not compile */ /* NOTICE TO USERS OF THE SOURCE CODE EXAMPLES THE SOURCE CODE EXAMPLES PROVIDED BY IBM ARE ONLY INTENDED TO ASSIST IN THE DEVELOPMENT OF A WORKING SOFTWARE PROGRAM. THE SOURCE CODE EXAMPLES DO NOT FUNCTION AS WRITTEN: ADDITIONAL CODE IS REQUIRED. IN ADDITION, THE SOURCE CODE EXAMPLES MAY NOT COMPILE AND/OR BIND SUCCESSFULLY AS WRITTEN. INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THE SOURCE CODE EXAMPLES, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOURCE CODE EXAMPLES, BOTH INDIVIDUALLY AND AS ONE OR MORE GROUPS, IS WITH YOU. SHOULD ANY PART OF THE SOURCE CODE EXAMPLES PROVE DEFECTIVE, YOU (AND NOT IBM OR AN AUTHORIZED RISC System/6000* WORKSTATION DEALER) ASSUME THE ENTIRE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. IBM does not warrant that the contents of the source code examples, whether individually or as one or more groups, will meet your requirements or that the source code examples are error-free. IBM may make improvements and/or changes in the source code examples at any time. Changes may be made periodically to the information in the source code examples; these changes may be reported, for the sample device drivers included herein, in new editions of the examples. References in the source code examples to IBM products, programs, or services do not imply that IBM intends to make these available in all countries in which IBM operates. Any reference to an IBM licensed program in the source code examples is not intended to state or imply that only IBM's licensed program may be used. Any functionally equivalent program may be used. * RISC System/6000 is a trademark of International Business Machines Corporation. */ #ifndef _H_ITOK_DDS #define _H_ITOK_DDS #include /* This structure is filled in by the config method. */ typedef struct { uchar lname[8]; /* Device logical name. */ uchar alias[8]; /* Alias name in ASCII characters */ uint bus_type; /* For i_init use */ uint bus_id; /* For d_init use */ uint intr_level; /* Interrupt level (2,3,6 or 7). */ uint intr_priority; /* For i_init use. */ ulong bios_addr; /* Bios memory start address. */ ulong shared_mem_addr; /* Shared memory start address. */ uint io_addr; /* io base 0x0A20 or 0x0A24. */ uint slot; /* Not used by dd,used by cfg-method*/ uint xmt_que_size; /* transmit que size */ uint ring_speed; /* 4 (== 0) or 16 Mbps (== 1). */ uint attn_mac; /* 1 == receive attn. MAC frames. */ uint beacon_mac; /* 1 == receive beacon MAC frames */ uint use_alt_addr; /* If <> 0 use alt_addr as tok-addr.*/ uchar alt_addr[CTOK_NADR_LENGTH]; /* Possible substitute addr. */ } itok_ddi_t; /* VPD status values. */ #define TOK_VPD_VALID 0x00 /* VPD obtained is valid */ #define TOK_VPD_INVALID 0x02 /* VPD obtained is invalid */ #define TOK_VPD_LENGTH CTOK_NADR_LENGTH /* VPD length of bytes */ /* This structure is used when passing the VPD data via an ioctl. */ typedef struct { ulong status; /* status of VPD */ ulong vpd_len; /* length of VPD returned */ /* (may be <= TOK_VPD_LENGTH) */ uchar vpd[TOK_VPD_LENGTH]; /* VPD */ } itok_vpd_t; #endif /* if !_H_ITOK_DDS */