patch-2.3.41 linux/include/linux/zorro.h
Next file: linux/include/net/dst.h
Previous file: linux/include/linux/wanrouter.h
Back to the patch index
Back to the overall index
- Lines: 63
- Date:
Wed Jan 26 12:45:21 2000
- Orig file:
v2.3.40/linux/include/linux/zorro.h
- Orig date:
Thu Feb 25 10:02:12 1999
diff -u --recursive --new-file v2.3.40/linux/include/linux/zorro.h linux/include/linux/zorro.h
@@ -1,7 +1,7 @@
/*
* linux/zorro.h -- Amiga AutoConfig (Zorro) Bus Definitions
*
- * Copyright (C) 1995-1998 Geert Uytterhoeven
+ * Copyright (C) 1995-2000 Geert Uytterhoeven
*
* This file is subject to the terms and conditions of the GNU General Public
* License. See the file COPYING in the main directory of this archive
@@ -39,6 +39,9 @@
typedef __u32 zorro_id;
+#define ZORRO_WILDCARD (0xffffffff) /* not official */
+
+
#define ZORRO_MANUF_PACIFIC_PERIPHERALS 0x00D3
#define ZORRO_PROD_PACIFIC_PERIPHERALS_SE_2000_A500 ZORRO_ID(PACIFIC_PERIPHERALS, 0x00, 0)
#define ZORRO_PROD_PACIFIC_PERIPHERALS_SCSI ZORRO_ID(PACIFIC_PERIPHERALS, 0x0A, 0)
@@ -694,8 +697,19 @@
#ifdef __KERNEL__
+#include <linux/ioport.h>
+
+struct zorro_dev {
+ struct ExpansionRom rom;
+ zorro_id id;
+ u16 slotaddr;
+ u16 slotsize;
+ char name[48];
+ struct resource resource;
+};
+
extern unsigned int zorro_num_autocon; /* # of autoconfig devices found */
-extern struct ConfigDev zorro_autocon[ZORRO_NUM_AUTO];
+extern struct zorro_dev zorro_autocon[ZORRO_NUM_AUTO];
/*
@@ -705,10 +719,18 @@
extern void zorro_init(void);
extern void zorro_proc_init(void);
-extern unsigned int zorro_find(zorro_id id, unsigned int part, unsigned int index);
-extern const struct ConfigDev *zorro_get_board(unsigned int key);
-extern void zorro_config_board(unsigned int key, unsigned int part);
-extern void zorro_unconfig_board(unsigned int key, unsigned int part);
+extern struct zorro_dev *zorro_find_device(zorro_id id,
+ struct zorro_dev *from);
+
+#define zorro_request_device(z, name) \
+ request_mem_region((z)->resource.start, \
+ (z)->resource.end-(z)->resource.start+1, (name))
+#define zorro_check_device(z) \
+ check_mem_region((z)->resource.start, \
+ (z)->resource.end-(z)->resource.start+1)
+#define zorro_release_device(z) \
+ release_mem_region((z)->resource.start, \
+ (z)->resource.end-(z)->resource.start+1)
/*
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)