diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/arm/kernel/isa.c |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'arch/arm/kernel/isa.c')
-rw-r--r-- | arch/arm/kernel/isa.c | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/arch/arm/kernel/isa.c b/arch/arm/kernel/isa.c new file mode 100644 index 000000000000..685c3e591a7e --- /dev/null +++ b/arch/arm/kernel/isa.c | |||
@@ -0,0 +1,53 @@ | |||
1 | /* | ||
2 | * linux/arch/arm/kernel/isa.c | ||
3 | * | ||
4 | * Copyright (C) 1999 Phil Blundell | ||
5 | * | ||
6 | * ISA shared memory and I/O port support | ||
7 | */ | ||
8 | |||
9 | /* | ||
10 | * This program is free software; you can redistribute it and/or | ||
11 | * modify it under the terms of the GNU General Public License | ||
12 | * as published by the Free Software Foundation; either version | ||
13 | * 2 of the License, or (at your option) any later version. | ||
14 | */ | ||
15 | |||
16 | /* | ||
17 | * Nothing about this is actually ARM specific. One day we could move | ||
18 | * it into kernel/resource.c or some place like that. | ||
19 | */ | ||
20 | |||
21 | #include <linux/stddef.h> | ||
22 | #include <linux/types.h> | ||
23 | #include <linux/fs.h> | ||
24 | #include <linux/sysctl.h> | ||
25 | #include <linux/init.h> | ||
26 | |||
27 | static unsigned int isa_membase, isa_portbase, isa_portshift; | ||
28 | |||
29 | static ctl_table ctl_isa_vars[4] = { | ||
30 | {BUS_ISA_MEM_BASE, "membase", &isa_membase, | ||
31 | sizeof(isa_membase), 0444, NULL, &proc_dointvec}, | ||
32 | {BUS_ISA_PORT_BASE, "portbase", &isa_portbase, | ||
33 | sizeof(isa_portbase), 0444, NULL, &proc_dointvec}, | ||
34 | {BUS_ISA_PORT_SHIFT, "portshift", &isa_portshift, | ||
35 | sizeof(isa_portshift), 0444, NULL, &proc_dointvec}, | ||
36 | {0} | ||
37 | }; | ||
38 | |||
39 | static struct ctl_table_header *isa_sysctl_header; | ||
40 | |||
41 | static ctl_table ctl_isa[2] = {{CTL_BUS_ISA, "isa", NULL, 0, 0555, ctl_isa_vars}, | ||
42 | {0}}; | ||
43 | static ctl_table ctl_bus[2] = {{CTL_BUS, "bus", NULL, 0, 0555, ctl_isa}, | ||
44 | {0}}; | ||
45 | |||
46 | void __init | ||
47 | register_isa_ports(unsigned int membase, unsigned int portbase, unsigned int portshift) | ||
48 | { | ||
49 | isa_membase = membase; | ||
50 | isa_portbase = portbase; | ||
51 | isa_portshift = portshift; | ||
52 | isa_sysctl_header = register_sysctl_table(ctl_bus, 0); | ||
53 | } | ||