| 1 |
|
| 2 | |
| 3 | *
|
| 4 | * Copyright 2005 Simtec Electronics
|
| 5 | * Ben Dooks <[email protected]>
|
| 6 |
|
| 7 |
|
| 8 | #ifndef __NET_AX88796_PLAT_H
|
| 9 | #define __NET_AX88796_PLAT_H
|
| 10 |
|
| 11 | #include <linux/types.h>
|
| 12 |
|
| 13 | struct sk_buff;
|
| 14 | struct net_device;
|
| 15 | struct platform_device;
|
| 16 |
|
| 17 | #define AXFLG_HAS_EEPROM (1<<0)
|
| 18 | #define AXFLG_MAC_FROMDEV (1<<1)
|
| 19 | #define AXFLG_HAS_93CX6 (1<<2)
|
| 20 | #define AXFLG_MAC_FROMPLATFORM (1<<3)
|
| 21 |
|
| 22 | struct ax_plat_data {
|
| 23 | unsigned int flags;
|
| 24 | unsigned char wordlength;
|
| 25 | unsigned char dcr_val;
|
| 26 | unsigned char rcr_val;
|
| 27 | unsigned char gpoc_val;
|
| 28 | u32 *reg_offsets;
|
| 29 | u8 *mac_addr; |
| 30 | AXFLG_MAC_FROMPLATFORM is used
|
| 31 |
|
| 32 |
|
| 33 | void (*block_output)(struct net_device *dev, int count,
|
| 34 | const unsigned char *buf, int star_page);
|
| 35 | void (*block_input)(struct net_device *dev, int count,
|
| 36 | struct sk_buff *skb, int ring_offset);
|
| 37 | |
| 38 | * the ax88796. Handles all interrupts if set to NULL
|
| 39 |
|
| 40 | int (*check_irq)(struct platform_device *pdev);
|
| 41 | };
|
| 42 |
|
| 43 |
|
| 44 | extern void ax_NS8390_reinit(struct net_device *dev);
|
| 45 |
|
| 46 | #endif
|