summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/pcmcia/startup.h
blob: ba6af2c150a72ceb86e3c9d0d2b3f22acd91930f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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