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.
···116116 struct resource res_attr;117117118118 void * virt_io;119119- ioaddr_t phys_io;119119+ unsigned int phys_io;120120 unsigned int phys_attr;121121 unsigned int phys_mem;122122 unsigned short speed_io, speed_attr, speed_mem;
+2-1
drivers/usb/host/sl811_cs.c
···112112 .num_resources = ARRAY_SIZE(resources),113113};114114115115-static int sl811_hc_init(struct device *parent, ioaddr_t base_addr, int irq)115115+static int sl811_hc_init(struct device *parent, resource_size_t base_addr,116116+ int irq)116117{117118 if (platform_dev.dev.parent)118119 return -EBUSY;
-8
include/pcmcia/cs_types.h
···2121#include <sys/types.h>2222#endif23232424-#if defined(__arm__) || defined(__mips__) || defined(__avr32__) || \2525- defined(__bfin__)2626-/* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */2727-typedef u_int ioaddr_t;2828-#else2929-typedef u_short ioaddr_t;3030-#endif3131-3224typedef u_short socket_t;3325typedef u_int event_t;3426typedef u_char cisdata_t;
+8
include/pcmcia/ds.h
···171171172172#if defined(CONFIG_PCMCIA_IOCTL) || !defined(__KERNEL__)173173174174+#if defined(__arm__) || defined(__mips__) || defined(__avr32__) || \175175+ defined(__bfin__)176176+/* This (ioaddr_t) is exposed to userspace & hence cannot be changed. */177177+typedef u_int ioaddr_t;178178+#else179179+typedef u_short ioaddr_t;180180+#endif181181+174182/* for AdjustResourceInfo */175183typedef struct adjust_t {176184 u_int Action;