diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2012-03-04 19:47:13 -0500 |
commit | c71c03bda1e86c9d5198c5d83f712e695c4f2a1e (patch) | |
tree | ecb166cb3e2b7e2adb3b5e292245fefd23381ac8 /drivers/net/e1000/e1000_osdep.h | |
parent | ea53c912f8a86a8567697115b6a0d8152beee5c8 (diff) | |
parent | 6a00f206debf8a5c8899055726ad127dbeeed098 (diff) |
Merge branch 'mpi-master' into wip-k-fmlpwip-k-fmlp
Conflicts:
litmus/sched_cedf.c
Diffstat (limited to 'drivers/net/e1000/e1000_osdep.h')
-rw-r--r-- | drivers/net/e1000/e1000_osdep.h | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/drivers/net/e1000/e1000_osdep.h b/drivers/net/e1000/e1000_osdep.h index edd1c75aa895..33e7c45a4fe4 100644 --- a/drivers/net/e1000/e1000_osdep.h +++ b/drivers/net/e1000/e1000_osdep.h | |||
@@ -34,12 +34,22 @@ | |||
34 | #ifndef _E1000_OSDEP_H_ | 34 | #ifndef _E1000_OSDEP_H_ |
35 | #define _E1000_OSDEP_H_ | 35 | #define _E1000_OSDEP_H_ |
36 | 36 | ||
37 | #include <linux/types.h> | ||
38 | #include <linux/pci.h> | ||
39 | #include <linux/delay.h> | ||
40 | #include <asm/io.h> | 37 | #include <asm/io.h> |
41 | #include <linux/interrupt.h> | 38 | |
42 | #include <linux/sched.h> | 39 | #define CONFIG_RAM_BASE 0x60000 |
40 | #define GBE_CONFIG_OFFSET 0x0 | ||
41 | |||
42 | #define GBE_CONFIG_RAM_BASE \ | ||
43 | ((unsigned int)(CONFIG_RAM_BASE + GBE_CONFIG_OFFSET)) | ||
44 | |||
45 | #define GBE_CONFIG_BASE_VIRT \ | ||
46 | ((void __iomem *)phys_to_virt(GBE_CONFIG_RAM_BASE)) | ||
47 | |||
48 | #define GBE_CONFIG_FLASH_WRITE(base, offset, count, data) \ | ||
49 | (iowrite16_rep(base + offset, data, count)) | ||
50 | |||
51 | #define GBE_CONFIG_FLASH_READ(base, offset, count, data) \ | ||
52 | (ioread16_rep(base + (offset << 1), data, count)) | ||
43 | 53 | ||
44 | #define er32(reg) \ | 54 | #define er32(reg) \ |
45 | (readl(hw->hw_addr + ((hw->mac_type >= e1000_82543) \ | 55 | (readl(hw->hw_addr + ((hw->mac_type >= e1000_82543) \ |