Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pcmcia: encapsulate ioaddr_t

By now, ioaddr_t should only be used by the deprecated ioctl, as it does not
correctly reflect the maximum ioport range at least on some architectures.

Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

+12 -11
+1 -1
drivers/pcmcia/au1000_generic.c
··· 292 292 skt->spd_io[map->map] = speed; 293 293 } 294 294 295 - map->start=(ioaddr_t)(u32)skt->virt_io; 295 + map->start=(unsigned int)(u32)skt->virt_io; 296 296 map->stop=map->start+MAP_SIZE; 297 297 return 0; 298 298
+1 -1
drivers/pcmcia/au1000_generic.h
··· 116 116 struct resource res_attr; 117 117 118 118 void * virt_io; 119 - ioaddr_t phys_io; 119 + unsigned int phys_io; 120 120 unsigned int phys_attr; 121 121 unsigned int phys_mem; 122 122 unsigned short speed_io, speed_attr, speed_mem;
+2 -1
drivers/usb/host/sl811_cs.c
··· 112 112 .num_resources = ARRAY_SIZE(resources), 113 113 }; 114 114 115 - static int sl811_hc_init(struct device *parent, ioaddr_t base_addr, int irq) 115 + static int sl811_hc_init(struct device *parent, resource_size_t base_addr, 116 + int irq) 116 117 { 117 118 if (platform_dev.dev.parent) 118 119 return -EBUSY;
-8
include/pcmcia/cs_types.h
··· 21 21 #include <sys/types.h> 22 22 #endif 23 23 24 - #if defined(__arm__) || defined(__mips__) || defined(__avr32__) || \ 25 - defined(__bfin__) 26 - /* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */ 27 - typedef u_int ioaddr_t; 28 - #else 29 - typedef u_short ioaddr_t; 30 - #endif 31 - 32 24 typedef u_short socket_t; 33 25 typedef u_int event_t; 34 26 typedef u_char cisdata_t;
+8
include/pcmcia/ds.h
··· 171 171 172 172 #if defined(CONFIG_PCMCIA_IOCTL) || !defined(__KERNEL__) 173 173 174 + #if defined(__arm__) || defined(__mips__) || defined(__avr32__) || \ 175 + defined(__bfin__) 176 + /* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */ 177 + typedef u_int ioaddr_t; 178 + #else 179 + typedef u_short ioaddr_t; 180 + #endif 181 + 174 182 /* for AdjustResourceInfo */ 175 183 typedef struct adjust_t { 176 184 u_int Action;