2 Copyright (c) 2002, Micrel Kendin Operations
4 Written 2002 by LIQUN RUAN
6 This software may be used and distributed according to the terms of
7 the GNU General Public License (GPL), incorporated herein by reference.
8 Drivers based on or derived from this code fall under the GPL and must
9 retain the authorship, copyright and license notice. This file is not
10 a complete program and may only be used when the entire operating
11 system is licensed under the GPL.
13 The author may be reached as lruan@kendin.com
14 Micrel Kendin Operations
18 This driver is for Kendin's KS8695 SOHO Router Chipset as ethernet driver.
20 Support and updates available at
21 www.kendin.com/ks8695/
26 #include "ks8695_drv.h"
28 #define ASSERT(x) if(!(x)) panic("KS8695: x")
29 #define DelayInMicroseconds(x) udelay(x)
30 #define DelayInMilliseconds(x) mdelay(x)
32 typedef uint8_t UCHAR
, UINT8
, BOOLEAN
, *PUCHAR
;
33 typedef uint16_t USHORT
, UINT16
, *PUSHORT
;
34 typedef uint32_t UINT
, ULONG
, UINT32
, *PUINT
, *PULONG
;
36 #define SPEED_UNKNOWN 0
39 #define FULL_DUPLEX 1 // default for full duplex
42 #define KS8695_WRITE_REG(reg, value) ((*(volatile uint32_t *)(Adapter->stDMAInfo.nBaseAddr + (reg))) = value)
43 #define KS8695_READ_REG(reg) (*(volatile uint32_t *)(Adapter->stDMAInfo.nBaseAddr + (reg)))
45 #endif /*KS8695_FXHW_H*/