Skip to contentSkip to conversation

Map drivers....

PATCH Eric W. Biederman 2 participants 2 messages Oct 9, 2001

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

David here is my recent work on getting a series of jedec map drivers into shape against the most recent work.

Included are assorted improvements and bugfixes to the jedec_probe core, and cfi_cmdset_0002.c

The 2 changes to cfi_cmdsset_0002.c were
a) The algorithm for waiting on an erase is now much smarter so the wait is proportional to the time the erase actually takes.
b) I added a case for doing a flash chip erase when you have exactly one erase region, with exacly one block in it. As some older chips don't support anything except erasing the whole chip. The flash on the eepro100 was my test case.

As well as the 5 map drivers I promised you earlier tonight. BIOS Roms on:
the intel l440gx
the intel ich2 (io controler hub)
the alpha ds10
the amd766 southbridge.
And the boot rom on the eepro100

This isn't the most elegant code I have ever written but it does get the job done, and provides some real uses of the jedec_probe code.

Tell me what you think.

Eric

Documentation/Configure.help +16 -1
diff -uNrX linux-exclude-files linux-2.4.11-pre4/Documentation/Configure.help linux-2.4.11-pre4.eb1/Documentation/Configure.help
@@ -10484,7 +10484,21 @@
   for probing the capabilities of flash devices. If you wish to
   support any device that is CFI-compliant, you need to enable this
   option. Visit (http://www.amd.com/products/nvd/overview/cfi.html)
-  for more information on CFI.
+  for more information on CFI.  Also see JEDEC (http://www.jedec.org/)
+  standards JESD168 and  JEP137-A.  CFI improves over the older JEDEC
+  standard JESD21-C (section 3.5) by allowing whole families of
+  devices to be supported by the same software with no changes.
+
+JEDEC JESD21C Flash Interface Support
+CONFIG_MTD_JESD21C
+  This provides support for the older JEDEC (http://www.jedec.org)
+  standard JESD21-C (section 3.5) that allows for identification of 
+  flash devices, but does not provide for interrogation of their
+  capabilities, as CFI does.  This means a table must be maintained
+  with an entry for every flash device to allow discovery of how
+  to program the flash chip.  As few chips are currently supported
+  if your chip is not recognized you need to add an entry to the
+  table in jedec_probe.c
 
 CFI Advanced configuration options
 CONFIG_MTD_CFI_ADV_OPTIONS
@@ -10594,6 +10608,7 @@
 CONFIG_MTD_ROM
   This option enables basic support for ROM chips accessed through 
   a bus mapping driver.
+ 
 
 CONFIG_MTD_JEDEC
   Enable older older JEDEC flash interface devices for self programming
Makefile +2 -1
diff -uNrX linux-exclude-files linux-2.4.11-pre4/Makefile linux-2.4.11-pre4.eb1/Makefile
@@ -1,7 +1,8 @@
 VERSION = 2
 PATCHLEVEL = 4
 SUBLEVEL = 11
-EXTRAVERSION =-pre4
+EXTRAVERSION =-pre4.eb1
+INSTALL_MOD_PATH:=/images/i386-nfs-boot/
 
 KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
 

Binary files linux-2.4.11-pre4/drivers/char/conmakehash and linux-2.4.11-pre4.eb1/drivers/char/conmakehash differ

drivers/mtd/chips/Config.in +3 -4
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/mtd/chips/Config.in linux-2.4.11-pre4.eb1/drivers/mtd/chips/Config.in
@@ -7,13 +7,12 @@
 comment 'RAM/ROM/Flash chip drivers'
 
 dep_tristate '  Detect flash chips by Common Flash Interface (CFI) probe' CONFIG_MTD_CFI $CONFIG_MTD
-#dep_tristate '  Detect non-CFI Intel-compatible flash chips' CONFIG_MTD_INTELPROBE $CONFIG_MTD
-dep_tristate '  Detect non-CFI AMD/JEDEC-compatible flash chips' CONFIG_MTD_JEDECPROBE $CONFIG_MTD
+dep_tristate '  Detect flash chips by JEDEC probe' CONFIG_MTD_JESD21C $CONFIG_MTD
 
-if [ "$CONFIG_MTD_CFI" = "y" -o "$CONFIG_MTD_INTELPROBE" = "y" -o "$CONFIG_MTD_JEDECPROBE" = "y" ]; then
+if [ "$CONFIG_MTD_CFI" = "y" -o "$CONFIG_MTD_JESD21C" = "y" ]; then
    define_bool CONFIG_MTD_GEN_PROBE y
 else
-   if [ "$CONFIG_MTD_CFI" = "m" -o "$CONFIG_MTD_INTELPROBE" = "m" -o "$CONFIG_MTD_JEDECPROBE" = "m" ]; then
+   if [ "$CONFIG_MTD_CFI" = "m" -o "$CONFIG_MTD_JESD21C" = "m" ]; then
       define_bool CONFIG_MTD_GEN_PROBE m
    else
       define_bool CONFIG_MTD_GEN_PROBE n
drivers/mtd/chips/Makefile +1 -2
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/mtd/chips/Makefile linux-2.4.11-pre4.eb1/drivers/mtd/chips/Makefile
@@ -20,9 +20,8 @@
 obj-$(CONFIG_MTD_CFI_AMDSTD)	+= cfi_cmdset_0002.o
 obj-$(CONFIG_MTD_CFI_INTELEXT)	+= cfi_cmdset_0001.o
 obj-$(CONFIG_MTD_GEN_PROBE)	+= gen_probe.o
-obj-$(CONFIG_MTD_INTELPROBE)	+= intel_probe.o
 obj-$(CONFIG_MTD_JEDEC)		+= jedec.o
-obj-$(CONFIG_MTD_JEDECPROBE)	+= jedec_probe.o
+obj-$(CONFIG_MTD_JESD21C)	+= jedec_probe.o
 obj-$(CONFIG_MTD_RAM)		+= map_ram.o
 obj-$(CONFIG_MTD_ROM)		+= map_rom.o
 obj-$(CONFIG_MTD_SHARP)		+= sharp.o
drivers/mtd/chips/cfi_cmdset_0001.c +1 -1
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/mtd/chips/cfi_cmdset_0001.c linux-2.4.11-pre4.eb1/drivers/mtd/chips/cfi_cmdset_0001.c
@@ -6,7 +6,7 @@
  *
  * $Id: cfi_cmdset_0001.c,v 1.87 2001/10/02 15:05:11 dwmw2 Exp $
  *
- * 
+ *
  * 10/10/2000	Nicolas Pitre <[email protected]>
  * 	- completely revamped method functions so they are aware and
  * 	  independent of the flash geometry (buswidth, interleave, etc.)
drivers/mtd/chips/cfi_cmdset_0002.c +211 -33

307 lines not on this page · raw message

drivers/mtd/chips/cfi_probe.c +13 -4
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/mtd/chips/cfi_probe.c linux-2.4.11-pre4.eb1/drivers/mtd/chips/cfi_probe.c
@@ -24,16 +24,13 @@
 static void print_cfi_ident(struct cfi_ident *);
 #endif
 
-int cfi_jedec_setup(struct cfi_private *p_cfi, int index);
-int cfi_jedec_lookup(int index, int mfr_id, int dev_id);
-
 static int cfi_probe_chip(struct map_info *map, __u32 base,
 			  struct flchip *chips, struct cfi_private *cfi);
 static int cfi_chip_setup(struct map_info *map, struct cfi_private *cfi);
 
 struct mtd_info *cfi_probe(struct map_info *map);
 
-/* check for QRY, or search for jedec id.
+/* check for QRY.
    in: interleave,type,mode
    ret: table index, <0 for error
  */
@@ -55,6 +52,18 @@
 {
 	int i;
 	
+	if ((base + 0) >= map->size) {
+		printk(KERN_NOTICE
+			"Probe at base[0x00](0x%08lx) past the end of the map(0x%08lx)\n",
+			base, map->size -1);
+		return 0;
+	}
+	if ((base + 0xff) >= map->size) {
+		printk(KERN_NOTICE
+			"Probe at base[0x55](0x%08lx) past the end of the map(0x%08lx)\n",
+			base + 0x55, map->size -1);
+		return 0;
+	}
 	cfi_send_gen_cmd(0xF0, 0, base, map, cfi, cfi->device_type, NULL);
 	cfi_send_gen_cmd(0x98, 0x55, base, map, cfi, cfi->device_type, NULL);
 
drivers/mtd/chips/gen_probe.c +2 -2
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/mtd/chips/gen_probe.c linux-2.4.11-pre4.eb1/drivers/mtd/chips/gen_probe.c
@@ -38,7 +38,7 @@
 	if (mtd)
 		return mtd;
 
-	printk(KERN_WARNING"cfi_probe: No supported Vendor Command Set found\n");
+	printk(KERN_WARNING"gen_probe: No supported Vendor Command Set found\n");
 	
 	kfree(cfi->cfiq);
 	kfree(cfi);
@@ -108,7 +108,7 @@
 	 * chip in read mode.
 	 */
 
-	for (base = (1<<cfi.chipshift); base + (1<<cfi.chipshift) <= map->size;
+	for (base = (1<<cfi.chipshift); base + (1<<cfi.chipshift) < map->size;
 	     base += (1<<cfi.chipshift))
 		cp->probe_chip(map, base, &chip[0], &cfi);
 
drivers/mtd/chips/jedec_probe.c +220 -9

419 lines not on this page · raw message

drivers/mtd/maps/Config.in +8 -2
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/mtd/maps/Config.in linux-2.4.11-pre4.eb1/drivers/mtd/maps/Config.in
@@ -6,7 +6,7 @@
 
 comment 'Mapping drivers for chip access'
 
-dep_tristate '  CFI Flash device in physical memory map' CONFIG_MTD_PHYSMAP $CONFIG_MTD_CFI
+dep_tristate '  CFI Flash device in physical memory map' CONFIG_MTD_PHYSMAP $CONFIG_MTD_GEN_PROBE
 if [ "$CONFIG_MTD_PHYSMAP" = "y" -o "$CONFIG_MTD_PHYSMAP" = "m" ]; then
    hex '    Physical start address of flash mapping' CONFIG_MTD_PHYSMAP_START 0x8000000
    hex '    Physical length of flash mapping' CONFIG_MTD_PHYSMAP_LEN 0x4000000
@@ -26,7 +26,9 @@
    dep_tristate '  JEDEC Flash device mapped on Mixcom piggyback card' CONFIG_MTD_MIXMEM $CONFIG_MTD_JEDEC
    dep_tristate '  JEDEC Flash device mapped on Octagon 5066 SBC' CONFIG_MTD_OCTAGON $CONFIG_MTD_JEDEC
    dep_tristate '  JEDEC Flash device mapped on Tempustech VMAX SBC301' CONFIG_MTD_VMAX $CONFIG_MTD_JEDEC
-   dep_tristate '  BIOS flash chip on Intel L440GX boards' CONFIG_MTD_L440GX $CONFIG_I386 $CONFIG_MTD_JEDEC
+   dep_tristate '  BIOS flash chip on Intel L440GX boards' CONFIG_MTD_L440GX $CONFIG_I386 $CONFIG_MTD_JESD21C
+   dep_tristate ' ROM connected to AMD766 southbridge' CONFIG_MTD_AMD766ROM $CONFIG_MTD_GEN_PROBE   
+   dep_tristate ' ROM connected to Intel Hub Controller 2' CONFIG_MTD_ICH2ROM $CONFIG_MTD_GEN_PROBE
 fi
 
 if [ "$CONFIG_PPC" = "y" ]; then
@@ -57,6 +59,10 @@
    dep_tristate '  CFI Flash device mapped on StrongARM SA11x0' CONFIG_MTD_SA1100 $CONFIG_MTD_CFI $CONFIG_ARCH_SA1100 $CONFIG_MTD_PARTITIONS
    dep_tristate '  CFI Flash device mapped on DC21285 Footbridge' CONFIG_MTD_DC21285 $CONFIG_MTD_CFI $CONFIG_ARCH_FOOTBRIDGE $CONFIG_MTD_PARTITIONS
    dep_tristate '  CFI Flash device mapped on the XScale IQ80310 board' CONFIG_MTD_IQ80310 $CONFIG_MTD_CFI $CONFIG_ARCH_IQ80310
+fi
+
+if [ "$CONFIG_ALPHA" = "y" ]; then
+   dep_tristate '  Flash chip mapping on TSUNAMI' CONFIG_MTD_TSUNAMI $CONFIG_MTD_GENPROBE
 fi
 
 endmenu
drivers/mtd/maps/Makefile +3 -0
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/mtd/maps/Makefile linux-2.4.11-pre4.eb1/drivers/mtd/maps/Makefile
@@ -14,6 +14,9 @@
 obj-$(CONFIG_MTD_ELAN_104NC)    += elan-104nc.o
 obj-$(CONFIG_MTD_IQ80310)	+= iq80310.o
 obj-$(CONFIG_MTD_L440GX)	+= l440gx.o
+obj-$(CONFIG_MTD_AMD766ROM)	+= amd766rom.o
+obj-$(CONFIG_MTD_ICH2ROM)	+= ich2rom.o
+obj-$(CONFIG_MTD_TSUNAMI)	+= tsunami_flash.o
 obj-$(CONFIG_MTD_NORA)		+= nora.o
 obj-$(CONFIG_MTD_OCTAGON)	+= octagon-5066.o
 obj-$(CONFIG_MTD_PHYSMAP)	+= physmap.o 
drivers/mtd/maps/amd766rom.c +244 -0

244 lines not on this page · raw message

drivers/mtd/maps/ich2rom.c +225 -0

225 lines not on this page · raw message

drivers/mtd/maps/l440gx.c +69 -17

143 lines not on this page · raw message

drivers/mtd/maps/physmap.c +9 -1
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/mtd/maps/physmap.c linux-2.4.11-pre4.eb1/drivers/mtd/maps/physmap.c
@@ -78,6 +78,9 @@
 
 int __init init_physmap(void)
 {
+	static const char *rom_probe_types[] = { "cfi_probe", "jedec_probe", "map_rom", 0 };
+	char **type;
+
        	printk(KERN_NOTICE "physmap flash device: %x at %x\n", WINDOW_SIZE, WINDOW_ADDR);
 	physmap_map.map_priv_1 = (unsigned long)ioremap(WINDOW_ADDR, WINDOW_SIZE);
 
@@ -85,7 +88,12 @@
 		printk("Failed to ioremap\n");
 		return -EIO;
 	}
-	mymtd = do_map_probe("cfi_probe", &physmap_map);
+	
+	mymtd = 0;
+	type = rom_probe_types;
+	for(; !mymtd && *type; type++) {
+		mymtd = do_map_probe(*type, &physmap_map);
+	}
 	if (mymtd) {
 		mymtd->module = THIS_MODULE;
 
drivers/mtd/maps/tsunami_flash.c +104 -0

104 lines not on this page · raw message

drivers/net/eepro100.c +23 -1
diff -uNrX linux-exclude-files linux-2.4.11-pre4/drivers/net/eepro100.c linux-2.4.11-pre4.eb1/drivers/net/eepro100.c
@@ -114,6 +114,11 @@
 #include <linux/skbuff.h>
 #include <linux/delay.h>
 
+#ifdef CONFIG_MTD
+#include <linux/mtd/mtd.h>
+#include <linux/mtd/map.h>
+#endif
+
 MODULE_AUTHOR("Maintainer: Andrey V. Savochkin <[email protected]>");
 MODULE_DESCRIPTION("Intel i82557/i82558/i82559 PCI EtherExpressPro driver");
 MODULE_LICENSE("GPL");
@@ -284,7 +289,8 @@
 
 */
 
-static int speedo_found1(struct pci_dev *pdev, long ioaddr, int fnd_cnt, int acpi_idle_state);
+static int speedo_found1(struct pci_dev *pdev, long ioaddr, 
+	unsigned long romio_addr, int fnd_cnt, int acpi_idle_state);
 
 enum pci_flags_bit {
 	PCI_USES_IO=1, PCI_USES_MEM=2, PCI_USES_MASTER=4,
@@ -381,6 +387,10 @@
 	PortReset=0, PortSelfTest=1, PortPartialReset=2, PortDump=3,
 };
 
+enum SCBflash_states {
+	FlashDisable=2, FlashEnable=1,
+};
+
 /* The Speedo3 Rx and Tx frame/buffer descriptors. */
 struct descriptor {			    /* A generic descriptor. */
 	s32 cmd_status;				/* All command and status fields. */
@@ -497,6 +507,10 @@
 	unsigned short phy[2];				/* PHY media interfaces available. */
 	unsigned short advertising;			/* Current PHY advertised caps. */
 	unsigned short partner;				/* Link partner caps. */
+#ifdef CONFIG_MTD
+	struct map_info map;
+	struct mtd_info *mtd;
+#endif
 };
 
 /* The parameters for a CmdConfigure operation.
@@ -551,6 +565,14 @@
 static void set_rx_mode(struct net_device *dev);
 static void speedo_show_state(struct net_device *dev);
 
+#ifdef CONFIG_MTD
+static u8 eepro100rom_read8(struct map_info *map, unsigned long ofs);
+static void eepro100rom_copy_from(struct map_info *map, void *to, 
+	unsigned long from, ssize_t len);
+static void eepro100rom_write8(struct map_info *map, u8 data, unsigned long ofs);
+static void eepro100rom_copy_to(struct map_info *map, unsigned long to, 	
+	const void *from, ssize_t len);
+#endif
 
 
 

#ifdef honor_default_port
@@ -563,7 +585,7 @@
static int __devinit eepro100_init_one (struct pci_dev *pdev,
const struct pci_device_id *ent)
{
- unsigned long ioaddr;
+ unsigned long ioaddr, romio_addr = 0;
int irq;
int acpi_idle_state = 0, pm;
static int cards_found /* = 0 */;
@@ -590,8 +612,8 @@
printk("Found Intel i82557 PCI Speedo at I/O %#lx, IRQ %d.\n",
ioaddr, irq);
#else
- ioaddr = (unsigned long)ioremap(pci_resource_start(pdev, 0),
- pci_resource_len(pdev, 0));
+ ioaddr = (unsigned long)ioremap(pci_resource_start(pdev, 0),
+ pci_resource_len(pdev, 0));
if (!ioaddr) {
printk (KERN_ERR "eepro100: cannot remap MMIO region %lx @ %lx\n",
pci_resource_len(pdev, 0), pci_resource_start(pdev, 0));
@@ -602,6 +624,24 @@
pci_resource_start(pdev, 0), irq);
#endif

+#ifdef CONFIG_MTD
+ if (pci_resource_start(pdev, 2) == 0) {
+ pci_assign_resource(pdev, 2);
+ }
+ if ((pci_resource_start(pdev, 2) != 0) &&
+ (request_mem_region(
+ pci_resource_start(pdev, 2),
+ pci_resource_len(pdev, 2),
+ "eepro100") != 0)) {
+ romio_addr = (unsigned long)ioremap(
+ pci_resource_start(pdev, 2),
+ pci_resource_len(pdev, 2));
+ printk(KERN_INFO "eepro100 Boot ROM enabled at 0x%08lx mapped at 0x%08lx\n",
+ pci_resource_start(pdev, 2),
+ romio_addr);
+ }
+#endif
+
/* save power state b4 pci_enable_device overwrites it */ pm = pci_find_capability(pdev, PCI_CAP_ID_PM); if (pm) {
@@ -611,18 +651,20 @@
}

if (pci_enable_device(pdev))
- goto err_out_free_mmio_region;
+ goto err_out_iounmap;

pci_set_master(pdev);

- if (speedo_found1(pdev, ioaddr, cards_found, acpi_idle_state) == 0)
+ if (speedo_found1(pdev, ioaddr, romio_addr, cards_found, acpi_idle_state) == 0)
cards_found++;
else
goto err_out_iounmap;

return 0;

-err_out_iounmap: ;
+err_out_iounmap:
+ if (romio_addr)
+ iounmap((void *)romio_addr);
#ifndef USE_IO
iounmap ((void *)ioaddr);
#endif
@@ -635,7 +677,7 @@
}

static int speedo_found1(struct pci_dev *pdev,
- long ioaddr, int card_idx, int acpi_idle_state)
+ long ioaddr, unsigned long romio_addr, int card_idx, int acpi_idle_state)
{
struct net_device *dev;
struct speedo_private *sp;
@@ -841,6 +883,34 @@
dev->set_multicast_list = &set_rx_mode;
dev->do_ioctl = &speedo_ioctl;

+#ifdef CONFIG_MTD
+ /* Enable Writes to the flash chpi */
+ outw(FlashEnable, ioaddr + SCBflash);
+
+ /* Now setup the data structures */
+ sp->map.name = "eepro100 rom";
+ sp->map.size = pci_resource_len(pdev, 2);
+ sp->map.buswidth = 1;
+ sp->map.read8 = eepro100rom_read8;
+ sp->map.copy_from = eepro100rom_copy_from;
+ sp->map.write8 = eepro100rom_write8;
+ sp->map.copy_to = eepro100rom_copy_to;
+ sp->map.map_priv_1 = romio_addr;
+ sp->mtd = 0;
+ if (romio_addr) {
+ sp->mtd = do_map_probe("jedec_probe", &sp->map);
+ if (!sp->mtd) {
+ sp->mtd = do_map_probe("map_rom", &sp->map);
+ }
+ if (sp->mtd) {
+ sp->mtd->module = THIS_MODULE;
+ add_mtd_device(sp->mtd);
+ printk(KERN_INFO "eepro100: found flash boot rom\n");
+ }
+ } else {
+ printk(KERN_NOTICE "eepro100: No boot rom address??\n");
+ }
+#endif /* CONFIG_MTD */
return 0;
}

@@ -1829,7 +1899,7 @@
if (speedo_debug > 3)
speedo_show_state(dev);

- /* Free all the skbuffs in the Rx and Tx queues. */
+ /* Free all the skbuffs in the Rx and Tx queues. */
for (i = 0; i < RX_RING_SIZE; i++) {
struct sk_buff *skb = sp->rx_skbuff[i]; sp->rx_skbuff[i] = 0;
@@ -2156,6 +2226,29 @@
sp->rx_mode = new_rx_mode;
}

+#ifdef CONFIG_MTD
+static u8 eepro100rom_read8(struct map_info *map, unsigned long ofs)
+{
+ return readb(map->map_priv_1 + ofs);
+}
+
+static void eepro100rom_copy_from(struct map_info *map, void *to, unsigned long from, ssize_t len) +{
+ memcpy_fromio(to, map->map_priv_1 + from, len);
+}
+
+static void eepro100rom_write8(struct map_info *map, u8 data, unsigned long ofs) +{
+ writeb(data, map->map_priv_1 + ofs);
+}
+
+static void eepro100rom_copy_to(struct map_info *map, unsigned long to,
+ const void *from, ssize_t len)
+{
+ memcpy_toio(map->map_priv_1 + to, from, len);
+}
+#endif
+

#ifdef CONFIG_PM
static int eepro100_suspend(struct pci_dev *pdev, u32 state) {
@@ -2202,11 +2295,27 @@
{
struct net_device *dev = pci_get_drvdata (pdev); struct speedo_private *sp = (struct speedo_private *)dev->priv;
+ long ioaddr = dev->base_addr;

unregister_netdev(dev);

+#ifdef CONFIG_MTD
+ if (sp->mtd) {
+ del_mtd_device(sp->mtd);
+ map_destroy(sp->mtd);
+ sp->mtd = 0;
+ }
+ /* Disable writes to the flash chip */
+ outw(FlashDisable, ioaddr + SCBflash);
+ release_mem_region(
+ pci_resource_start(pdev, 2), pci_resource_len(pdev, 2));
+ iounmap((void *)sp->map.map_priv_1);
+#endif
+
+
release_region(pci_resource_start(pdev, 1), pci_resource_len(pdev, 1)); release_mem_region(pci_resource_start(pdev, 0), pci_resource_len(pdev, 0));
+

#ifndef USE_IO
iounmap((char *)dev->base_addr);
Binary files linux-2.4.11-pre4/drivers/net/hamradio/soundmodem/gentbl and linux-2.4.11-pre4.eb1/drivers/net/hamradio/soundmodem/gentbl differ Binary files linux-2.4.11-pre4/drivers/pci/gen-devlist and linux-2.4.11-pre4.eb1/drivers/pci/gen-devlist differ

include/asm-alpha/core_tsunami.h +16 -0
diff -uNrX linux-exclude-files linux-2.4.11-pre4/include/asm-alpha/core_tsunami.h linux-2.4.11-pre4.eb1/include/asm-alpha/core_tsunami.h
@@ -89,6 +89,7 @@
 #define TSUNAMI_dchip  ((tsunami_dchip *)(IDENT_ADDR+TS_BIAS+0x1B0000800UL))
 #define TSUNAMI_pchip0 ((tsunami_pchip *)(IDENT_ADDR+TS_BIAS+0x180000000UL))
 #define TSUNAMI_pchip1 ((tsunami_pchip *)(IDENT_ADDR+TS_BIAS+0x380000000UL))
+#define TSUNAMI_tig    ((volatile unsigned long *)   (IDENT_ADDR+TS_BIAS+0x100000000UL))
 extern int TSUNAMI_bootcpu;
 
 /*
@@ -408,6 +409,21 @@
 {
 	*(vulp)addr = b;
 }
+
+/*
+ * Tig bus functions.
+ */
+
+__EXTERN_INLINE unsigned long tsunami_tig_readb(unsigned long offset)
+{
+	return TSUNAMI_tig[offset << (6 - 3)] & 0xff;
+}
+
+__EXTERN_INLINE void tsunami_tig_writeb(unsigned char b, unsigned long offset)
+{
+	TSUNAMI_tig[offset << (6 - 3)] = b & 0xff;
+}
+
 
 #undef vucp
 #undef vusp
#1 lore raw
Quoted 2 lines · [email protected] said:

David here is my recent work on getting a series of jedec map drivers
into shape against the most recent work.

Looks good, thanks. Russell has already committed the code to make the jedec probe code deal with some Intel chips - could you merge that with the current CVS code instead of 2.4.11-pre4? Also, could you add $Id$ tags to the new files?

I'd be inclined to retain the config option CONFIG_MTD_JEDECPROBE rather than renaming it, too.

--
dwmw2