diff options
| author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-02-06 06:44:27 -0500 |
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-03-26 19:30:08 -0400 |
| commit | c3faac4a74c2126e2b68f39d6e8791e88b5f7dbe (patch) | |
| tree | f02c1a820de27bd666b17f148a5089081e738a3b /include/linux/mtd | |
| parent | 834247ec7e281dee839fe4a04bc1bbf0c7395172 (diff) | |
mtd: remove junk pmc551.h
This header is tiny and contains only pmc551-private stuff, so it should
not live in 'include/linux' - let's just merge it with pmc551.c.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd')
| -rw-r--r-- | include/linux/mtd/pmc551.h | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/include/linux/mtd/pmc551.h b/include/linux/mtd/pmc551.h deleted file mode 100644 index da8b98d1b330..000000000000 --- a/include/linux/mtd/pmc551.h +++ /dev/null | |||
| @@ -1,77 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * PMC551 PCI Mezzanine Ram Device | ||
| 3 | * | ||
| 4 | * Author: | ||
| 5 | * Mark Ferrell | ||
| 6 | * Copyright 1999,2000 Nortel Networks | ||
| 7 | * | ||
| 8 | * License: | ||
| 9 | * As part of this driver was derrived from the slram.c driver it falls | ||
| 10 | * under the same license, which is GNU General Public License v2 | ||
| 11 | */ | ||
| 12 | |||
| 13 | #ifndef __MTD_PMC551_H__ | ||
| 14 | #define __MTD_PMC551_H__ | ||
| 15 | |||
| 16 | #include <linux/mtd/mtd.h> | ||
| 17 | |||
| 18 | #define PMC551_VERSION \ | ||
| 19 | "Ramix PMC551 PCI Mezzanine Ram Driver. (C) 1999,2000 Nortel Networks.\n" | ||
| 20 | |||
| 21 | /* | ||
| 22 | * Our personal and private information | ||
| 23 | */ | ||
| 24 | struct mypriv { | ||
| 25 | struct pci_dev *dev; | ||
| 26 | u_char *start; | ||
| 27 | u32 base_map0; | ||
| 28 | u32 curr_map0; | ||
| 29 | u32 asize; | ||
| 30 | struct mtd_info *nextpmc551; | ||
| 31 | }; | ||
| 32 | |||
| 33 | /* | ||
| 34 | * Function Prototypes | ||
| 35 | */ | ||
| 36 | static int pmc551_erase(struct mtd_info *, struct erase_info *); | ||
| 37 | static int pmc551_point(struct mtd_info *mtd, loff_t from, size_t len, | ||
| 38 | size_t *retlen, void **virt, resource_size_t *phys); | ||
| 39 | static int pmc551_read(struct mtd_info *, loff_t, size_t, size_t *, u_char *); | ||
| 40 | static int pmc551_write(struct mtd_info *, loff_t, size_t, size_t *, const u_char *); | ||
| 41 | |||
| 42 | |||
| 43 | /* | ||
| 44 | * Define the PCI ID's if the kernel doesn't define them for us | ||
| 45 | */ | ||
| 46 | #ifndef PCI_VENDOR_ID_V3_SEMI | ||
| 47 | #define PCI_VENDOR_ID_V3_SEMI 0x11b0 | ||
| 48 | #endif | ||
| 49 | |||
| 50 | #ifndef PCI_DEVICE_ID_V3_SEMI_V370PDC | ||
| 51 | #define PCI_DEVICE_ID_V3_SEMI_V370PDC 0x0200 | ||
| 52 | #endif | ||
| 53 | |||
| 54 | |||
| 55 | #define PMC551_PCI_MEM_MAP0 0x50 | ||
| 56 | #define PMC551_PCI_MEM_MAP1 0x54 | ||
| 57 | #define PMC551_PCI_MEM_MAP_MAP_ADDR_MASK 0x3ff00000 | ||
| 58 | #define PMC551_PCI_MEM_MAP_APERTURE_MASK 0x000000f0 | ||
| 59 | #define PMC551_PCI_MEM_MAP_REG_EN 0x00000002 | ||
| 60 | #define PMC551_PCI_MEM_MAP_ENABLE 0x00000001 | ||
| 61 | |||
| 62 | #define PMC551_SDRAM_MA 0x60 | ||
| 63 | #define PMC551_SDRAM_CMD 0x62 | ||
| 64 | #define PMC551_DRAM_CFG 0x64 | ||
| 65 | #define PMC551_SYS_CTRL_REG 0x78 | ||
| 66 | |||
| 67 | #define PMC551_DRAM_BLK0 0x68 | ||
| 68 | #define PMC551_DRAM_BLK1 0x6c | ||
| 69 | #define PMC551_DRAM_BLK2 0x70 | ||
| 70 | #define PMC551_DRAM_BLK3 0x74 | ||
| 71 | #define PMC551_DRAM_BLK_GET_SIZE(x) (524288<<((x>>4)&0x0f)) | ||
| 72 | #define PMC551_DRAM_BLK_SET_COL_MUX(x,v) (((x) & ~0x00007000) | (((v) & 0x7) << 12)) | ||
| 73 | #define PMC551_DRAM_BLK_SET_ROW_MUX(x,v) (((x) & ~0x00000f00) | (((v) & 0xf) << 8)) | ||
| 74 | |||
| 75 | |||
| 76 | #endif /* __MTD_PMC551_H__ */ | ||
| 77 | |||
