resource.c (36d99df2fb474222ab47fbe8ae7385661033223b) | resource.c (c33fff0afbef4f0467c99e3f47ee7e98ae78c77e) |
---|---|
1/* 2 * linux/kernel/resource.c 3 * 4 * Copyright (C) 1999 Linus Torvalds 5 * Copyright (C) 1999 Martin Mares <mj@ucw.cz> 6 * 7 * Arbitrary resource management. 8 */ --- 117 unchanged lines hidden (view full) --- 126 .open = iomem_open, 127 .read = seq_read, 128 .llseek = seq_lseek, 129 .release = seq_release, 130}; 131 132static int __init ioresources_init(void) 133{ | 1/* 2 * linux/kernel/resource.c 3 * 4 * Copyright (C) 1999 Linus Torvalds 5 * Copyright (C) 1999 Martin Mares <mj@ucw.cz> 6 * 7 * Arbitrary resource management. 8 */ --- 117 unchanged lines hidden (view full) --- 126 .open = iomem_open, 127 .read = seq_read, 128 .llseek = seq_lseek, 129 .release = seq_release, 130}; 131 132static int __init ioresources_init(void) 133{ |
134 struct proc_dir_entry *entry; 135 136 entry = create_proc_entry("ioports", 0, NULL); 137 if (entry) 138 entry->proc_fops = &proc_ioports_operations; 139 entry = create_proc_entry("iomem", 0, NULL); 140 if (entry) 141 entry->proc_fops = &proc_iomem_operations; | 134 proc_create("ioports", 0, NULL, &proc_ioports_operations); 135 proc_create("iomem", 0, NULL, &proc_iomem_operations); |
142 return 0; 143} 144__initcall(ioresources_init); 145 146#endif /* CONFIG_PROC_FS */ 147 148/* Return the conflict entry if you can't request it */ 149static struct resource * __request_resource(struct resource *root, struct resource *new) --- 584 unchanged lines hidden --- | 136 return 0; 137} 138__initcall(ioresources_init); 139 140#endif /* CONFIG_PROC_FS */ 141 142/* Return the conflict entry if you can't request it */ 143static struct resource * __request_resource(struct resource *root, struct resource *new) --- 584 unchanged lines hidden --- |