Home | History | Annotate | Line # | Download | only in ic
mb86960reg.h revision 1.6
      1  1.6  tsutsui /*	$NetBSD: mb86960reg.h,v 1.6 2002/09/29 17:10:37 tsutsui Exp $	*/
      2  1.2    perry 
      3  1.1  mycroft /*
      4  1.1  mycroft  * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
      5  1.1  mycroft  *
      6  1.1  mycroft  * This software may be used, modified, copied, distributed, and sold, in
      7  1.1  mycroft  * both source and binary form provided that the above copyright, these
      8  1.1  mycroft  * terms and the following disclaimer are retained.  The name of the author
      9  1.1  mycroft  * and/or the contributor may not be used to endorse or promote products
     10  1.1  mycroft  * derived from this software without specific prior written permission.
     11  1.1  mycroft  *
     12  1.1  mycroft  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND THE CONTRIBUTOR ``AS IS'' AND
     13  1.1  mycroft  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     14  1.1  mycroft  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     15  1.1  mycroft  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR THE CONTRIBUTOR BE LIABLE
     16  1.1  mycroft  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     17  1.1  mycroft  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     18  1.1  mycroft  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     19  1.1  mycroft  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     20  1.1  mycroft  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     21  1.1  mycroft  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     22  1.1  mycroft  * SUCH DAMAGE.
     23  1.1  mycroft  */
     24  1.1  mycroft 
     25  1.1  mycroft /*
     26  1.1  mycroft  * Registers of Fujitsu MB86960A/MB86965A Ethernet controller.
     27  1.1  mycroft  * Written and contributed by M.S. <seki (at) sysrap.cs.fujitsu.co.jp>
     28  1.1  mycroft  */
     29  1.1  mycroft 
     30  1.1  mycroft /*
     31  1.1  mycroft  * Notes on register naming:
     32  1.1  mycroft  *
     33  1.1  mycroft  * Fujitsu documents for MB86960A/MB86965A uses no mnemorable names
     34  1.1  mycroft  * for their registers.  They defined only three names for 32
     35  1.1  mycroft  * registers and appended numbers to distinguish registers of
     36  1.1  mycroft  * same name.  Surprisingly, the numbers represent I/O address
     37  1.1  mycroft  * offsets of the registers from the base addresses, and their
     38  1.1  mycroft  * names correspond to the "bank" the registers are allocated.
     39  1.1  mycroft  * All this means that, for example, to say "read DLCR8" has no more
     40  1.1  mycroft  * than to say "read a register at offset 8 on bank DLCR."
     41  1.1  mycroft  *
     42  1.1  mycroft  * The following definitions may look silly, but that's what Fujitsu
     43  1.1  mycroft  * did, and it is necessary to know these names to read Fujitsu
     44  1.1  mycroft  * documents..
     45  1.1  mycroft  */
     46  1.1  mycroft 
     47  1.1  mycroft /* Data Link Control Registrs, on invaliant port addresses.  */
     48  1.1  mycroft #define FE_DLCR0	0
     49  1.1  mycroft #define FE_DLCR1	1
     50  1.1  mycroft #define FE_DLCR2	2
     51  1.1  mycroft #define FE_DLCR3	3
     52  1.1  mycroft #define FE_DLCR4	4
     53  1.1  mycroft #define FE_DLCR5	5
     54  1.1  mycroft #define FE_DLCR6	6
     55  1.1  mycroft #define FE_DLCR7	7
     56  1.1  mycroft 
     57  1.1  mycroft /* More DLCRs, on register bank #0.  */
     58  1.1  mycroft #define FE_DLCR8	8
     59  1.1  mycroft #define FE_DLCR9	9
     60  1.1  mycroft #define FE_DLCR10	10
     61  1.1  mycroft #define FE_DLCR11	11
     62  1.1  mycroft #define FE_DLCR12	12
     63  1.1  mycroft #define FE_DLCR13	13
     64  1.1  mycroft #define FE_DLCR14	14
     65  1.1  mycroft #define FE_DLCR15	15
     66  1.1  mycroft 
     67  1.1  mycroft /* Malticast Address Registers.  On register bank #1.  */
     68  1.1  mycroft #define FE_MAR8		8
     69  1.1  mycroft #define FE_MAR9		9
     70  1.1  mycroft #define FE_MAR10	10
     71  1.1  mycroft #define FE_MAR11	11
     72  1.1  mycroft #define FE_MAR12	12
     73  1.1  mycroft #define FE_MAR13	13
     74  1.1  mycroft #define FE_MAR14	14
     75  1.1  mycroft #define FE_MAR15	15
     76  1.1  mycroft 
     77  1.3  msaitoh /* Buffer Memory Port Registers.  On register bank #2.  */
     78  1.1  mycroft #define FE_BMPR8	8
     79  1.1  mycroft #define FE_BMPR9	9
     80  1.1  mycroft #define FE_BMPR10	10
     81  1.1  mycroft #define FE_BMPR11	11
     82  1.1  mycroft #define FE_BMPR12	12
     83  1.1  mycroft #define FE_BMPR13	13
     84  1.1  mycroft #define FE_BMPR14	14
     85  1.1  mycroft #define FE_BMPR15	15
     86  1.1  mycroft 
     87  1.1  mycroft /* More BMPRs, only on MB86965A, accessible only when JLI mode.  */
     88  1.1  mycroft #define FE_BMPR16	16
     89  1.1  mycroft #define FE_BMPR17	17
     90  1.1  mycroft #define FE_BMPR18	18
     91  1.1  mycroft #define FE_BMPR19	19
     92  1.1  mycroft 
     93  1.1  mycroft #define	FE_RESET	31
     94  1.1  mycroft 
     95  1.1  mycroft /*
     96  1.1  mycroft  * Definitions of registers.
     97  1.1  mycroft  * I don't have Fujitsu documents of MB86960A/MB86965A, so I don't
     98  1.1  mycroft  * know the official names for each flags and fields.  The following
     99  1.1  mycroft  * names are assigned by me (the author of this file,) since I cannot
    100  1.1  mycroft  * mnemorize hexadecimal constants for all of these functions.
    101  1.1  mycroft  * Comments?  FIXME.
    102  1.1  mycroft  */
    103  1.1  mycroft 
    104  1.1  mycroft /* DLCR0 -- transmitter status */
    105  1.1  mycroft #define FE_D0_BUSERR	0x01	/* Bus write error			*/
    106  1.1  mycroft #define FE_D0_COLL16	0x02	/* Collision limit (16) encountered	*/
    107  1.1  mycroft #define FE_D0_COLLID	0x04	/* Collision on last transmission	*/
    108  1.1  mycroft #define FE_D0_JABBER	0x08	/* Jabber				*/
    109  1.1  mycroft #define FE_D0_CRLOST	0x10	/* Carrier lost on last transmission	*/
    110  1.1  mycroft #define FE_D0_PKTRCD	0x20	/* No corrision on last transmission	*/
    111  1.1  mycroft #define FE_D0_NETBSY	0x40	/* Network Busy (Carrier Detected)	*/
    112  1.1  mycroft #define FE_D0_TXDONE	0x80	/* Transmission complete		*/
    113  1.1  mycroft 
    114  1.1  mycroft /* DLCR1 -- receiver status */
    115  1.1  mycroft #define FE_D1_OVRFLO	0x01	/* Receiver buffer overflow		*/
    116  1.1  mycroft #define FE_D1_CRCERR	0x02	/* CRC error on last packet		*/
    117  1.1  mycroft #define FE_D1_ALGERR	0x04	/* Alignment error on last packet	*/
    118  1.1  mycroft #define FE_D1_SRTPKT	0x08	/* Short (RUNT) packet is received	*/
    119  1.1  mycroft #define FE_D1_RMTRST	0x10	/* Remote reset packet (type = 0x0900)	*/
    120  1.1  mycroft #define FE_D1_DMAEOP	0x20	/* Host asserted End of DMA OPeration	*/
    121  1.1  mycroft #define FE_D1_BUSERR	0x40	/* Bus read error			*/
    122  1.1  mycroft #define FE_D1_PKTRDY	0x80	/* Packet(s) ready on receive buffer	*/
    123  1.1  mycroft 
    124  1.1  mycroft #define	FE_D1_ERRBITS	"\20\4SRTPKT\3ALGERR\2CRCERR\1OVRFLO"
    125  1.1  mycroft 
    126  1.1  mycroft /* DLCR2 -- transmitter interrupt control; same layout as DLCR0 */
    127  1.1  mycroft #define FE_D2_BUSERR	FE_D0_BUSERR
    128  1.1  mycroft #define FE_D2_COLL16	FE_D0_COLL16
    129  1.1  mycroft #define FE_D2_COLLID	FE_D0_COLLID
    130  1.1  mycroft #define FE_D2_JABBER	FE_D0_JABBER
    131  1.1  mycroft #define FE_D2_TXDONE	FE_D0_TXDONE
    132  1.1  mycroft 
    133  1.1  mycroft #define FE_D2_RESERVED	0x70
    134  1.1  mycroft 
    135  1.1  mycroft /* DLCR3 -- receiver interrupt control; same layout as DLCR1 */
    136  1.1  mycroft #define FE_D3_OVRFLO	FE_D1_OVRFLO
    137  1.1  mycroft #define FE_D3_CRCERR	FE_D1_CRCERR
    138  1.1  mycroft #define FE_D3_ALGERR	FE_D1_ALGERR
    139  1.1  mycroft #define FE_D3_SRTPKT	FE_D1_SRTPKT
    140  1.1  mycroft #define FE_D3_RMTRST	FE_D1_RMTRST
    141  1.1  mycroft #define FE_D3_DMAEOP	FE_D1_DMAEOP
    142  1.1  mycroft #define FE_D3_BUSERR	FE_D1_BUSERR
    143  1.1  mycroft #define FE_D3_PKTRDY	FE_D1_PKTRDY
    144  1.1  mycroft 
    145  1.1  mycroft /* DLCR4 -- transmitter operation mode */
    146  1.1  mycroft #define FE_D4_DSC	0x01	/* Disable carrier sense on trans.	*/
    147  1.1  mycroft #define FE_D4_LBC	0x02	/* Loop back test control		*/
    148  1.1  mycroft #define FE_D4_CNTRL	0x04	/* - ???				*/
    149  1.1  mycroft #define FE_D4_TEST1	0x08	/* Test output #1			*/
    150  1.1  mycroft #define FE_D4_COL	0xF0	/* Collision counter			*/
    151  1.1  mycroft 
    152  1.1  mycroft #define FE_D4_LBC_ENABLE	0x00	/* Perform loop back test	*/
    153  1.1  mycroft #define FE_D4_LBC_DISABLE	0x02	/* Normal operation		*/
    154  1.1  mycroft 
    155  1.1  mycroft #define FE_D4_COL_SHIFT	4
    156  1.1  mycroft 
    157  1.1  mycroft /* DLCR5 -- receiver operation mode */
    158  1.1  mycroft #define FE_D5_AFM0	0x01	/* Receive packets for other stations	*/
    159  1.1  mycroft #define FE_D5_AFM1	0x02	/* Receive packets for this station	*/
    160  1.1  mycroft #define FE_D5_RMTRST	0x04	/* Enable remote reset operation	*/
    161  1.1  mycroft #define FE_D5_SRTPKT	0x08	/* Accept short (RUNT) packets		*/
    162  1.1  mycroft #define FE_D5_SRTADR	0x10	/* Short (16 bits?) MAC address		*/
    163  1.1  mycroft #define FE_D5_BADPKT	0x20	/* Accept packets with error		*/
    164  1.1  mycroft #define FE_D5_BUFEMP	0x40	/* Receive buffer is empty		*/
    165  1.1  mycroft #define FE_D5_TEST2	0x80	/* Test output #2			*/
    166  1.1  mycroft 
    167  1.1  mycroft /* DLCR6 -- hardware configuration #0 */
    168  1.1  mycroft #define FE_D6_BUFSIZ	0x03	/* Size of NIC buffer SRAM		*/
    169  1.1  mycroft #define FE_D6_TXBSIZ	0x0C	/* Size (and config)of trans. buffer	*/
    170  1.1  mycroft #define FE_D6_BBW	0x10	/* Buffer SRAM bus width		*/
    171  1.1  mycroft #define FE_D6_SBW	0x20	/* System bus width			*/
    172  1.1  mycroft #define FE_D6_SRAM	0x40	/* Buffer SRAM access time		*/
    173  1.1  mycroft #define FE_D6_DLC	0x80	/* Disable DLC (recever/transmitter)	*/
    174  1.1  mycroft 
    175  1.1  mycroft #define FE_D6_BUFSIZ_8KB	0x00	/* The board has  8KB SRAM	*/
    176  1.1  mycroft #define FE_D6_BUFSIZ_16KB	0x01	/* The board has 16KB SRAM	*/
    177  1.1  mycroft #define FE_D6_BUFSIZ_32KB	0x02	/* The board has 32KB SRAM	*/
    178  1.1  mycroft #define FE_D6_BUFSIZ_64KB	0x03	/* The board has 64KB SRAM	*/
    179  1.1  mycroft 
    180  1.1  mycroft #define FE_D6_TXBSIZ_1x2KB	0x00	/* Single 2KB buffer for trans.	*/
    181  1.1  mycroft #define FE_D6_TXBSIZ_2x2KB	0x04	/* Double 2KB buffers		*/
    182  1.1  mycroft #define FE_D6_TXBSIZ_2x4KB	0x08	/* Double 4KB buffers		*/
    183  1.1  mycroft #define FE_D6_TXBSIZ_2x8KB	0x0C	/* Double 8KB buffers		*/
    184  1.1  mycroft 
    185  1.1  mycroft #define FE_D6_BBW_WORD		0x00	/* SRAM has 16 bit data line	*/
    186  1.1  mycroft #define FE_D6_BBW_BYTE		0x10	/* SRAM has  8 bit data line	*/
    187  1.1  mycroft 
    188  1.1  mycroft #define FE_D6_SBW_WORD		0x00	/* Access with 16 bit (AT) bus	*/
    189  1.1  mycroft #define FE_D6_SBW_BYTE		0x20	/* Access with  8 bit (XT) bus	*/
    190  1.1  mycroft 
    191  1.1  mycroft #define FE_D6_SRAM_150ns	0x00	/* The board has slow SRAM	*/
    192  1.1  mycroft #define FE_D6_SRAM_100ns	0x40	/* The board has fast SRAM	*/
    193  1.1  mycroft 
    194  1.1  mycroft #define FE_D6_DLC_ENABLE	0x00	/* Normal operation		*/
    195  1.1  mycroft #define FE_D6_DLC_DISABLE	0x80	/* Stop sending/receiving	*/
    196  1.1  mycroft 
    197  1.1  mycroft /* DLC7 -- hardware configuration #1 */
    198  1.1  mycroft #define FE_D7_BYTSWP	0x01	/* Host byte order control		*/
    199  1.1  mycroft #define FE_D7_EOPPOL	0x02	/* Polarity of DMA EOP signal		*/
    200  1.1  mycroft #define FE_D7_RBS	0x0C	/* Register bank select			*/
    201  1.1  mycroft #define FE_D7_RDYPNS	0x10	/* Senses RDYPNSEL input signal		*/
    202  1.1  mycroft #define FE_D7_POWER	0x20	/* Stand-by (power down) mode control	*/
    203  1.6  tsutsui #define FE_D7_ED	0xC0	/* Encoder/Decoder config (for MB86960)	*/
    204  1.1  mycroft #define FE_D7_IDENT	0xC0	/* Chip identification			*/
    205  1.1  mycroft 
    206  1.1  mycroft #define FE_D7_BYTSWP_LH	0x00	/* DEC/Intel byte order		*/
    207  1.1  mycroft #define FE_D7_BYTSWP_HL	0x01	/* IBM/Motorolla byte order	*/
    208  1.1  mycroft 
    209  1.1  mycroft #define FE_D7_RBS_DLCR		0x00	/* Select DLCR8-15		*/
    210  1.1  mycroft #define FE_D7_RBS_MAR		0x04	/* Select MAR8-15		*/
    211  1.1  mycroft #define FE_D7_RBS_BMPR		0x08	/* Select BMPR8-15		*/
    212  1.1  mycroft 
    213  1.1  mycroft #define FE_D7_POWER_DOWN	0x00	/* Power down (stand-by) mode	*/
    214  1.1  mycroft #define FE_D7_POWER_UP		0x20	/* Normal operation		*/
    215  1.1  mycroft 
    216  1.6  tsutsui #define FE_D7_ED_NORMAL		0x00	/* Normal NICE			*/
    217  1.6  tsutsui #define FE_D7_ED_MON		0x40	/* NICE + Monitor		*/
    218  1.6  tsutsui #define FE_D7_ED_BYPASS		0x80	/* Encoder/Decorder Bypass	*/
    219  1.6  tsutsui #define FE_D7_ED_TEST		0xC0	/* Encoder/Decorder Test	*/
    220  1.6  tsutsui 
    221  1.6  tsutsui #define FE_D7_IDENT_86960	0x00	/* MB86960 (NICE)		*/
    222  1.6  tsutsui #define FE_D7_IDENT_86964	0x40	/* MB86964			*/
    223  1.6  tsutsui #define FE_D7_IDENT_86967	0x80	/* MB86967			*/
    224  1.6  tsutsui #define FE_D7_IDENT_86965	0xC0	/* MB86965 (EtherCoupler)	*/
    225  1.1  mycroft 
    226  1.1  mycroft /* DLCR8 thru DLCR13 are for Ethernet station address.  */
    227  1.1  mycroft 
    228  1.6  tsutsui /* DLCR14 and DLCR15 are for TDR (Time Domain Reflectometry).  */
    229  1.1  mycroft 
    230  1.1  mycroft /* MAR8 thru MAR15 are for Multicast address filter.  */
    231  1.1  mycroft 
    232  1.1  mycroft /* BMPR8 and BMPR9 are for packet data.  */
    233  1.1  mycroft 
    234  1.1  mycroft /* BMPR10 -- transmitter start trigger */
    235  1.1  mycroft #define FE_B10_START	0x80	/* Start transmitter			*/
    236  1.1  mycroft #define FE_B10_COUNT	0x7F	/* Packet count				*/
    237  1.1  mycroft 
    238  1.1  mycroft /* BMPR11 -- 16 collisions control */
    239  1.1  mycroft #define FE_B11_CTRL	0x01	/* Skip or resend errored packets	*/
    240  1.1  mycroft #define FE_B11_MODE1	0x02	/* Restart transmitter after COLL16	*/
    241  1.1  mycroft #define FE_B11_MODE2	0x04	/* Automatic restart enable		*/
    242  1.1  mycroft 
    243  1.1  mycroft #define FE_B11_CTRL_RESEND	0x00	/* Re-send the collided packet	*/
    244  1.1  mycroft #define FE_B11_CTRL_SKIP	0x01	/* Skip the collided packet	*/
    245  1.1  mycroft 
    246  1.1  mycroft /* BMPR12 -- DMA enable */
    247  1.1  mycroft #define FE_B12_TXDMA	0x01	/* Enable transmitter DMA		*/
    248  1.1  mycroft #define FE_B12_RXDMA	0x02	/* Enable receiver DMA			*/
    249  1.1  mycroft 
    250  1.1  mycroft /* BMPR13 -- DMA control */
    251  1.1  mycroft #define FE_B13_BSTCTL	0x03	/* DMA burst mode control		*/
    252  1.1  mycroft #define FE_B13_TPTYPE	0x04	/* Twisted pair cable impedance		*/
    253  1.1  mycroft #define FE_B13_PORT	0x18	/* Port (TP/AUI) selection		*/
    254  1.1  mycroft #define FE_B13_LNKTST	0x20	/* Link test enable			*/
    255  1.1  mycroft #define FE_B13_SQTHLD	0x40	/* Lower squelch threshold		*/
    256  1.1  mycroft #define FE_B13_IOUNLK	0x80	/* Change I/O base address		*/
    257  1.1  mycroft 
    258  1.1  mycroft #define FE_B13_BSTCTL_1		0x00
    259  1.1  mycroft #define FE_B13_BSTCTL_4		0x01
    260  1.1  mycroft #define FE_B13_BSTCTL_8		0x02
    261  1.1  mycroft #define FE_B13_BSTCLT_12	0x03
    262  1.1  mycroft 
    263  1.1  mycroft #define FE_B13_TPTYPE_UTP	0x00	/* Unshielded (standard) cable	*/
    264  1.1  mycroft #define FE_B13_TPTYPE_STP	0x04	/* Shielded (IBM) cable		*/
    265  1.1  mycroft 
    266  1.1  mycroft #define FE_B13_PORT_AUTO	0x00	/* Auto detected		*/
    267  1.1  mycroft #define FE_B13_PORT_TP		0x08	/* Force TP			*/
    268  1.1  mycroft #define FE_B13_PORT_AUI		0x18	/* Force AUI			*/
    269  1.1  mycroft 
    270  1.1  mycroft /* BMPR14 -- More receiver control and more transmission interrupts */
    271  1.1  mycroft #define FE_B14_FILTER	0x01	/* Filter out self-originated packets	*/
    272  1.1  mycroft #define FE_B14_SQE	0x02	/* SQE interrupt enable			*/
    273  1.1  mycroft #define FE_B14_SKIP	0x04	/* Skip a received packet		*/
    274  1.1  mycroft #define FE_B14_RJAB	0x20	/* RJAB interrupt enable		*/
    275  1.1  mycroft #define FE_B14_LLD	0x40	/* Local-link-down interrupt enable	*/
    276  1.1  mycroft #define FE_B14_RLD	0x80	/* Remote-link-down interrupt enable	*/
    277  1.1  mycroft 
    278  1.1  mycroft /* BMPR15 -- More transmitter status; basically same layout as BMPR14 */
    279  1.1  mycroft #define FE_B15_SQE	FE_B14_SQE
    280  1.1  mycroft #define FE_B15_RCVPOL	0x08	/* Reversed receive line polarity	*/
    281  1.1  mycroft #define FE_B15_RMTPRT	0x10	/* ???					*/
    282  1.1  mycroft #define FE_B15_RAJB	FE_B14_RJAB
    283  1.1  mycroft #define FE_B15_LLD	FE_B14_LLD
    284  1.1  mycroft #define FE_B15_RLD	FE_B14_RLD
    285  1.1  mycroft 
    286  1.1  mycroft /* BMPR16 -- EEPROM control */
    287  1.1  mycroft #define FE_B16_DOUT	0x04	/* EEPROM Data in (CPU to EEPROM)	*/
    288  1.1  mycroft #define FE_B16_SELECT	0x20	/* EEPROM chip select			*/
    289  1.1  mycroft #define FE_B16_CLOCK	0x40	/* EEPROM shift clock			*/
    290  1.1  mycroft #define FE_B16_DIN	0x80	/* EEPROM data out (EEPROM to CPU)	*/
    291  1.1  mycroft 
    292  1.1  mycroft /* BMPR17 -- EEPROM data */
    293  1.1  mycroft #define FE_B17_DATA	0x80	/* EEPROM data bit			*/
    294  1.1  mycroft 
    295  1.1  mycroft /* BMPR18 ??? */
    296  1.1  mycroft 
    297  1.1  mycroft /* BMPR19 -- ISA interface configuration */
    298  1.1  mycroft #define FE_B19_IRQ		0xC0
    299  1.1  mycroft #define FE_B19_IRQ_SHIFT	6
    300  1.1  mycroft 
    301  1.1  mycroft #define FE_B19_ROM		0x38
    302  1.1  mycroft #define FE_B19_ROM_SHIFT	3
    303  1.1  mycroft 
    304  1.1  mycroft #define FE_B19_ADDR		0x07
    305  1.1  mycroft #define FE_B19_ADDR_SHIFT	0
    306  1.1  mycroft 
    307  1.1  mycroft /*
    308  1.1  mycroft  * EEPROM specification (of JLI mode).
    309  1.1  mycroft  */
    310  1.1  mycroft 
    311  1.1  mycroft /* Number of bytes in an EEPROM accessible through 86965.  */
    312  1.1  mycroft #define FE_EEPROM_SIZE	32
    313  1.1  mycroft 
    314  1.1  mycroft /* Offset for JLI config; automatically copied into BMPR19 at startup.  */
    315  1.1  mycroft #define FE_EEPROM_CONF	0
    316  1.1  mycroft 
    317  1.1  mycroft /*
    318  1.1  mycroft  * Some 86960 specific constants.
    319  1.1  mycroft  */
    320  1.1  mycroft 
    321  1.1  mycroft /* Length (in bytes) of a Multicast Address Filter.  */
    322  1.1  mycroft #define FE_FILTER_LEN	8
    323  1.1  mycroft 
    324  1.1  mycroft /* How many packets we can put in the transmission buffer on NIC memory.  */
    325  1.1  mycroft #define FE_QUEUEING_MAX 127
    326  1.1  mycroft 
    327  1.1  mycroft /* Length (in bytes) of a "packet length" word in transmission buffer.  */
    328  1.1  mycroft #define FE_DATA_LEN_LEN 2
    329  1.4   ichiro 
    330  1.4   ichiro /*
    331  1.4   ichiro  * FUJITSU MBH10302 specific Registers.
    332  1.4   ichiro  */
    333  1.4   ichiro 
    334  1.4   ichiro #define FE_MBH0			0x10	/* Master interrupt register */
    335  1.4   ichiro #define FE_MBH_ENADDR		0x1A	/* Mac address */
    336  1.4   ichiro #define FE_MBH0_MASK		0x0D
    337  1.4   ichiro #define FE_MBH0_INTR_ENABLE	0x10	/* Enable interrupts */
    338