File tree Expand file tree Collapse file tree 5 files changed +999
-0
lines changed Expand file tree Collapse file tree 5 files changed +999
-0
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ struct ei_device {
73
73
u32 * reg_offset ; /* Register mapping table */
74
74
spinlock_t page_lock ; /* Page register locks */
75
75
unsigned long priv ; /* Private field to store bus IDs etc. */
76
+ #ifdef AX88796_PLATFORM
77
+ unsigned char rxcr_base ; /* default value for RXCR */
78
+ #endif
76
79
};
77
80
78
81
/* The maximum number of 8390 interrupt service routines called per IRQ. */
@@ -86,11 +89,19 @@ struct ei_device {
86
89
/* Some generic ethernet register configurations. */
87
90
#define E8390_TX_IRQ_MASK 0xa /* For register EN0_ISR */
88
91
#define E8390_RX_IRQ_MASK 0x5
92
+
93
+ #ifdef AX88796_PLATFORM
94
+ #define E8390_RXCONFIG (ei_status.rxcr_base | 0x04)
95
+ #define E8390_RXOFF (ei_status.rxcr_base | 0x20)
96
+ #else
89
97
#define E8390_RXCONFIG 0x4 /* EN0_RXCR: broadcasts, no multicast,errors */
90
98
#define E8390_RXOFF 0x20 /* EN0_RXCR: Accept no packets */
99
+ #endif
100
+
91
101
#define E8390_TXCONFIG 0x00 /* EN0_TXCR: Normal transmit mode */
92
102
#define E8390_TXOFF 0x02 /* EN0_TXCR: Transmitter off */
93
103
104
+
94
105
/* Register accessed at EN_CMD, the 8390 base addr. */
95
106
#define E8390_STOP 0x01 /* Stop and reset the chip */
96
107
#define E8390_START 0x02 /* Start the chip, clear reset */
Original file line number Diff line number Diff line change @@ -197,6 +197,14 @@ config MACB
197
197
198
198
source "drivers/net/arm/Kconfig"
199
199
200
+ config AX88796
201
+ tristate "ASIX AX88796 NE2000 clone support"
202
+ select CRC32
203
+ select MII
204
+ help
205
+ AX88796 driver, using platform bus to provide
206
+ chip detection and resources
207
+
200
208
config MACE
201
209
tristate "MACE (Power Mac ethernet) support"
202
210
depends on PPC_PMAC && PPC32
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ obj-$(CONFIG_NET_SB1250_MAC) += sb1250-mac.o
107
107
obj-$(CONFIG_B44) += b44.o
108
108
obj-$(CONFIG_FORCEDETH) += forcedeth.o
109
109
obj-$(CONFIG_NE_H8300) += ne-h8300.o
110
+ obj-$(CONFIG_AX88796) += ax88796.o
110
111
111
112
obj-$(CONFIG_TSI108_ETH) += tsi108_eth.o
112
113
obj-$(CONFIG_MV643XX_ETH) += mv643xx_eth.o
You can’t perform that action at this time.
0 commit comments