patch-2.3.13 linux/include/linux/ioport.h

Next file: linux/include/linux/isicom.h
Previous file: linux/include/linux/init.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.12/linux/include/linux/ioport.h linux/include/linux/ioport.h
@@ -19,11 +19,20 @@
 	struct resource *parent, *sibling, *child;
 };
 
+/*
+ * PCI-like IO resources have these defined flags.
+ * The low four bits come directly from the PCI specs,
+ * the rest are extended sw flags..
+ */
+#define IORESOURCE_IOPORT	0x01	/* 0 - memory mapped, 1 - IO ports */
+#define IORESOURCE_MEMTYPE_MASK	0x06	/* PCI-specific mapping info */
+#define IORESOURCE_PREFETCH	0x08	/* No side effects */
+#define IORESOURCE_BUSY		0x10	/* Driver uses this resource */
+
 /* PC/ISA/whatever - the normal PC address spaces: IO and memory */
 extern struct resource ioport_resource;
 extern struct resource iomem_resource;
 
-extern void reserve_setup(char *str, int *ints);
 extern int get_resource_list(struct resource *, char *buf, int size);
 
 extern int request_resource(struct resource *root, struct resource *new);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)