diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-05-14 11:24:18 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-05-14 11:24:18 +0000 |
commit | 5083a5169336bc051d3c980bacbfbda7464cf575 (patch) | |
tree | efdebf1383b0ecdd291fb918bda44bca82064c34 /mdk-stage1/pcmcia/startup.h | |
parent | 358e287b27dc27cc86317a3cee55bd693634c879 (diff) | |
download | drakx-5083a5169336bc051d3c980bacbfbda7464cf575.tar drakx-5083a5169336bc051d3c980bacbfbda7464cf575.tar.gz drakx-5083a5169336bc051d3c980bacbfbda7464cf575.tar.bz2 drakx-5083a5169336bc051d3c980bacbfbda7464cf575.tar.xz drakx-5083a5169336bc051d3c980bacbfbda7464cf575.zip |
re-sync after the big svn loss
Diffstat (limited to 'mdk-stage1/pcmcia/startup.h')
-rw-r--r-- | mdk-stage1/pcmcia/startup.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/mdk-stage1/pcmcia/startup.h b/mdk-stage1/pcmcia/startup.h new file mode 100644 index 000000000..ba6af2c15 --- /dev/null +++ b/mdk-stage1/pcmcia/startup.h @@ -0,0 +1,54 @@ +/* + * Startup tool for non statically mapped PCMCIA sockets + * + * The initial developer of the original code is David A. Hinds + * <dahinds@users.sourceforge.net>. Portions created by David A. Hinds + * are Copyright (C) 1999 David A. Hinds. All Rights Reserved. + * + * License: GPL v2 + * + */ + +#define MAX_SOCKS 8 +#define MAX_BINDINGS 4 +#define MAX_MODULES 4 + +/* for AdjustResourceInfo */ +typedef struct adjust_t { + unsigned int Action; + unsigned int Resource; + unsigned int Attributes; + union { + struct memory { + unsigned long Base; + unsigned long Size; + } memory; + struct io { + unsigned long BasePort; + unsigned long NumPorts; + unsigned int IOAddrLines; + } io; + struct irq { + unsigned int IRQ; + } irq; + } resource; +} adjust_t; + + +typedef struct adjust_list_t { + adjust_t adj; + struct adjust_list_t *next; +} adjust_list_t; + + +extern adjust_list_t *root_adjust; + +int parse_configfile(char *fn); + + +#define RES_MEMORY_RANGE 1 +#define RES_IO_RANGE 2 +#define RES_IRQ 3 +#define RES_RESERVED 0x10 +#define REMOVE_MANAGED_RESOURCE 1 +#define ADD_MANAGED_RESOURCE 2 |