[parisc-linux-cvs] gsc cleanup
Matthew Wilcox
willy@ldl.fc.hp.com
Mon, 27 Aug 2001 19:03:43 -0600
gsc_find_device, gsc_bus & gsc_dev aren't used anywhere; and they seem
to be obsoleted by the parisc_device work.
Index: include/asm-parisc/gsc.h
===================================================================
RCS file: /home/cvs/parisc/linux/include/asm-parisc/gsc.h,v
retrieving revision 1.10
diff -u -p -r1.10 gsc.h
--- gsc.h 2001/08/14 16:55:00 1.10
+++ gsc.h 2001/08/28 00:56:02
@@ -3,7 +3,7 @@
#ifdef __KERNEL__
#include <linux/types.h>
-#include <asm/hardware.h> /* for struct hp_device */
+#include <asm/hardware.h> /* for struct parisc_device */
/*
* The convention used for inb/outb etc. is that names starting with
@@ -40,21 +40,6 @@ static __inline__ void *gsc_memset_io(vo
return NULL;
}
-struct gsc_dev {
- struct gsc_bus *bus; /* bus this device is on */
- struct gsc_dev *next; /* chain of all devices */
- struct gsc_dev *next_bus; /* chain of all devices on a bus */
- struct gsc_dev *next_submod; /* chain of all devices on a module */
-
- unsigned irq; /* irq generated by this device */
- void *hpa; /* hard physical address */
-
- u16 hversion;
- u8 spa; /* SPA requirements */
- u8 type;
- u32 sversion;
-};
-
struct gsc_irq {
unsigned long txn_addr; /* IRQ "target" */
int txn_data; /* HW "IRQ" */
@@ -66,17 +51,6 @@ struct gsc_irq {
extern int gsc_alloc_irq(struct gsc_irq *dev); /* dev needs an irq */
extern int gsc_claim_irq(struct gsc_irq *dev, int irq); /* dev needs this irq */
-
-struct gsc_bus {
- unsigned long hpa; /* HPA of device 0, function 0 of this bus */
-};
-
-/*
- * There is one gsc_dev structure for each slot-number/function-number
- * combination:
- */
-
-struct gsc_dev *gsc_find_device(u16 hversion, struct gsc_dev *from);
extern void probe_serial_gsc(void);