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

[PATCH] sh: SH4-202 microdev updates

A few trivial updates for the microdev board support code:

- Update for __IO_PREFIX changes.
- Consolidate headers into a single microdev.h.
- Update the microdev_defconfig.
- Add init values for the S1D13806 used by s1d13xxxfb.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Paul Mundt and committed by
Linus Torvalds
74017294 4a41cdf9

+538 -349
+95 -97
arch/sh/boards/superh/microdev/io.c
··· 16 16 #include <linux/pci.h> 17 17 #include <linux/wait.h> 18 18 #include <asm/io.h> 19 - #include <asm/mach/io.h> 19 + #include <asm/microdev.h> 20 20 21 21 /* 22 22 * we need to have a 'safe' address to re-direct all I/O requests ··· 52 52 #define IO_ISP1161_PHYS 0xa7700000ul /* Physical address of Philips ISP1161x USB chip */ 53 53 #define IO_SUPERIO_PHYS 0xa7800000ul /* Physical address of SMSC FDC37C93xAPM SuperIO chip */ 54 54 55 - #define PORT2ADDR(x) (microdev_isa_port2addr(x)) 55 + /* 56 + * map I/O ports to memory-mapped addresses 57 + */ 58 + static unsigned long microdev_isa_port2addr(unsigned long offset) 59 + { 60 + unsigned long result; 56 61 62 + if ((offset >= IO_LAN91C111_BASE) && 63 + (offset < IO_LAN91C111_BASE + IO_LAN91C111_EXTENT)) { 64 + /* 65 + * SMSC LAN91C111 Ethernet chip 66 + */ 67 + result = IO_LAN91C111_PHYS + offset - IO_LAN91C111_BASE; 68 + } else if ((offset >= IO_SUPERIO_BASE) && 69 + (offset < IO_SUPERIO_BASE + IO_SUPERIO_EXTENT)) { 70 + /* 71 + * SMSC FDC37C93xAPM SuperIO chip 72 + * 73 + * Configuration Registers 74 + */ 75 + result = IO_SUPERIO_PHYS + (offset << 1); 76 + #if 0 77 + } else if (offset == KBD_DATA_REG || offset == KBD_CNTL_REG || 78 + offset == KBD_STATUS_REG) { 79 + /* 80 + * SMSC FDC37C93xAPM SuperIO chip 81 + * 82 + * PS/2 Keyboard + Mouse (ports 0x60 and 0x64). 83 + */ 84 + result = IO_SUPERIO_PHYS + (offset << 1); 85 + #endif 86 + } else if (((offset >= IO_IDE1_BASE) && 87 + (offset < IO_IDE1_BASE + IO_IDE_EXTENT)) || 88 + (offset == IO_IDE1_MISC)) { 89 + /* 90 + * SMSC FDC37C93xAPM SuperIO chip 91 + * 92 + * IDE #1 93 + */ 94 + result = IO_SUPERIO_PHYS + (offset << 1); 95 + } else if (((offset >= IO_IDE2_BASE) && 96 + (offset < IO_IDE2_BASE + IO_IDE_EXTENT)) || 97 + (offset == IO_IDE2_MISC)) { 98 + /* 99 + * SMSC FDC37C93xAPM SuperIO chip 100 + * 101 + * IDE #2 102 + */ 103 + result = IO_SUPERIO_PHYS + (offset << 1); 104 + } else if ((offset >= IO_SERIAL1_BASE) && 105 + (offset < IO_SERIAL1_BASE + IO_SERIAL_EXTENT)) { 106 + /* 107 + * SMSC FDC37C93xAPM SuperIO chip 108 + * 109 + * Serial #1 110 + */ 111 + result = IO_SUPERIO_PHYS + (offset << 1); 112 + } else if ((offset >= IO_SERIAL2_BASE) && 113 + (offset < IO_SERIAL2_BASE + IO_SERIAL_EXTENT)) { 114 + /* 115 + * SMSC FDC37C93xAPM SuperIO chip 116 + * 117 + * Serial #2 118 + */ 119 + result = IO_SUPERIO_PHYS + (offset << 1); 120 + } else if ((offset >= IO_ISP1161_BASE) && 121 + (offset < IO_ISP1161_BASE + IO_ISP1161_EXTENT)) { 122 + /* 123 + * Philips USB ISP1161x chip 124 + */ 125 + result = IO_ISP1161_PHYS + offset - IO_ISP1161_BASE; 126 + } else { 127 + /* 128 + * safe default. 129 + */ 130 + printk("Warning: unexpected port in %s( offset = 0x%lx )\n", 131 + __FUNCTION__, offset); 132 + result = PVR; 133 + } 134 + 135 + return result; 136 + } 137 + 138 + #define PORT2ADDR(x) (microdev_isa_port2addr(x)) 57 139 58 140 static inline void delay(void) 59 141 { ··· 174 92 return microdev_pci_inl(port); 175 93 #endif 176 94 return *(volatile unsigned int*)PORT2ADDR(port); 95 + } 96 + 97 + void microdev_outw(unsigned short b, unsigned long port) 98 + { 99 + #ifdef CONFIG_PCI 100 + if (port >= PCIBIOS_MIN_IO) { 101 + microdev_pci_outw(b, port); 102 + return; 103 + } 104 + #endif 105 + *(volatile unsigned short*)PORT2ADDR(port) = b; 177 106 } 178 107 179 108 void microdev_outb(unsigned char b, unsigned long port) ··· 249 156 } else { 250 157 *(volatile unsigned char*)PORT2ADDR(port) = b; 251 158 } 252 - } 253 - 254 - void microdev_outw(unsigned short b, unsigned long port) 255 - { 256 - #ifdef CONFIG_PCI 257 - if (port >= PCIBIOS_MIN_IO) { 258 - microdev_pci_outw(b, port); 259 - return; 260 - } 261 - #endif 262 - *(volatile unsigned short*)PORT2ADDR(port) = b; 263 159 } 264 160 265 161 void microdev_outl(unsigned int b, unsigned long port) ··· 366 284 while (count--) 367 285 *port_addr = *buf++; 368 286 } 369 - 370 - /* 371 - * map I/O ports to memory-mapped addresses 372 - */ 373 - unsigned long microdev_isa_port2addr(unsigned long offset) 374 - { 375 - unsigned long result; 376 - 377 - if ((offset >= IO_LAN91C111_BASE) && 378 - (offset < IO_LAN91C111_BASE + IO_LAN91C111_EXTENT)) { 379 - /* 380 - * SMSC LAN91C111 Ethernet chip 381 - */ 382 - result = IO_LAN91C111_PHYS + offset - IO_LAN91C111_BASE; 383 - } else if ((offset >= IO_SUPERIO_BASE) && 384 - (offset < IO_SUPERIO_BASE + IO_SUPERIO_EXTENT)) { 385 - /* 386 - * SMSC FDC37C93xAPM SuperIO chip 387 - * 388 - * Configuration Registers 389 - */ 390 - result = IO_SUPERIO_PHYS + (offset << 1); 391 - #if 0 392 - } else if (offset == KBD_DATA_REG || offset == KBD_CNTL_REG || 393 - offset == KBD_STATUS_REG) { 394 - /* 395 - * SMSC FDC37C93xAPM SuperIO chip 396 - * 397 - * PS/2 Keyboard + Mouse (ports 0x60 and 0x64). 398 - */ 399 - result = IO_SUPERIO_PHYS + (offset << 1); 400 - #endif 401 - } else if (((offset >= IO_IDE1_BASE) && 402 - (offset < IO_IDE1_BASE + IO_IDE_EXTENT)) || 403 - (offset == IO_IDE1_MISC)) { 404 - /* 405 - * SMSC FDC37C93xAPM SuperIO chip 406 - * 407 - * IDE #1 408 - */ 409 - result = IO_SUPERIO_PHYS + (offset << 1); 410 - } else if (((offset >= IO_IDE2_BASE) && 411 - (offset < IO_IDE2_BASE + IO_IDE_EXTENT)) || 412 - (offset == IO_IDE2_MISC)) { 413 - /* 414 - * SMSC FDC37C93xAPM SuperIO chip 415 - * 416 - * IDE #2 417 - */ 418 - result = IO_SUPERIO_PHYS + (offset << 1); 419 - } else if ((offset >= IO_SERIAL1_BASE) && 420 - (offset < IO_SERIAL1_BASE + IO_SERIAL_EXTENT)) { 421 - /* 422 - * SMSC FDC37C93xAPM SuperIO chip 423 - * 424 - * Serial #1 425 - */ 426 - result = IO_SUPERIO_PHYS + (offset << 1); 427 - } else if ((offset >= IO_SERIAL2_BASE) && 428 - (offset < IO_SERIAL2_BASE + IO_SERIAL_EXTENT)) { 429 - /* 430 - * SMSC FDC37C93xAPM SuperIO chip 431 - * 432 - * Serial #2 433 - */ 434 - result = IO_SUPERIO_PHYS + (offset << 1); 435 - } else if ((offset >= IO_ISP1161_BASE) && 436 - (offset < IO_ISP1161_BASE + IO_ISP1161_EXTENT)) { 437 - /* 438 - * Philips USB ISP1161x chip 439 - */ 440 - result = IO_ISP1161_PHYS + offset - IO_ISP1161_BASE; 441 - } else { 442 - /* 443 - * safe default. 444 - */ 445 - printk("Warning: unexpected port in %s( offset = 0x%lx )\n", 446 - __FUNCTION__, offset); 447 - result = PVR; 448 - } 449 - 450 - return result; 451 - } 452 -
+1 -1
arch/sh/boards/superh/microdev/irq.c
··· 15 15 16 16 #include <asm/system.h> 17 17 #include <asm/io.h> 18 - #include <asm/mach/irq.h> 18 + #include <asm/microdev.h> 19 19 20 20 #define NUM_EXTERNAL_IRQS 16 /* IRL0 .. IRL15 */ 21 21
+154 -12
arch/sh/boards/superh/microdev/setup.c
··· 3 3 * 4 4 * Copyright (C) 2003 Sean McGoogan (Sean.McGoogan@superh.com) 5 5 * Copyright (C) 2003, 2004 SuperH, Inc. 6 - * Copyright (C) 2004 Paul Mundt 6 + * Copyright (C) 2004, 2005 Paul Mundt 7 7 * 8 8 * SuperH SH4-202 MicroDev board support. 9 9 * ··· 15 15 #include <linux/init.h> 16 16 #include <linux/platform_device.h> 17 17 #include <linux/ioport.h> 18 + #include <video/s1d13xxxfb.h> 19 + #include <asm/microdev.h> 18 20 #include <asm/io.h> 19 - #include <asm/mach/irq.h> 20 - #include <asm/mach/io.h> 21 21 #include <asm/machvec.h> 22 - #include <asm/machvec_init.h> 23 22 24 23 extern void microdev_heartbeat(void); 25 24 ··· 49 50 .mv_outsb = microdev_outsb, 50 51 .mv_outsw = microdev_outsw, 51 52 .mv_outsl = microdev_outsl, 52 - 53 - .mv_isa_port2addr = microdev_isa_port2addr, 54 53 55 54 .mv_init_irq = init_microdev_irq, 56 55 ··· 139 142 .resource = smc91x_resources, 140 143 }; 141 144 142 - static int __init smc91x_setup(void) 145 + #ifdef CONFIG_FB_S1D13XXX 146 + static struct s1d13xxxfb_regval s1d13806_initregs[] = { 147 + { S1DREG_MISC, 0x00 }, 148 + { S1DREG_COM_DISP_MODE, 0x00 }, 149 + { S1DREG_GPIO_CNF0, 0x00 }, 150 + { S1DREG_GPIO_CNF1, 0x00 }, 151 + { S1DREG_GPIO_CTL0, 0x00 }, 152 + { S1DREG_GPIO_CTL1, 0x00 }, 153 + { S1DREG_CLK_CNF, 0x02 }, 154 + { S1DREG_LCD_CLK_CNF, 0x01 }, 155 + { S1DREG_CRT_CLK_CNF, 0x03 }, 156 + { S1DREG_MPLUG_CLK_CNF, 0x03 }, 157 + { S1DREG_CPU2MEM_WST_SEL, 0x02 }, 158 + { S1DREG_SDRAM_REF_RATE, 0x03 }, 159 + { S1DREG_SDRAM_TC0, 0x00 }, 160 + { S1DREG_SDRAM_TC1, 0x01 }, 161 + { S1DREG_MEM_CNF, 0x80 }, 162 + { S1DREG_PANEL_TYPE, 0x25 }, 163 + { S1DREG_MOD_RATE, 0x00 }, 164 + { S1DREG_LCD_DISP_HWIDTH, 0x63 }, 165 + { S1DREG_LCD_NDISP_HPER, 0x1e }, 166 + { S1DREG_TFT_FPLINE_START, 0x06 }, 167 + { S1DREG_TFT_FPLINE_PWIDTH, 0x03 }, 168 + { S1DREG_LCD_DISP_VHEIGHT0, 0x57 }, 169 + { S1DREG_LCD_DISP_VHEIGHT1, 0x02 }, 170 + { S1DREG_LCD_NDISP_VPER, 0x00 }, 171 + { S1DREG_TFT_FPFRAME_START, 0x0a }, 172 + { S1DREG_TFT_FPFRAME_PWIDTH, 0x81 }, 173 + { S1DREG_LCD_DISP_MODE, 0x03 }, 174 + { S1DREG_LCD_MISC, 0x00 }, 175 + { S1DREG_LCD_DISP_START0, 0x00 }, 176 + { S1DREG_LCD_DISP_START1, 0x00 }, 177 + { S1DREG_LCD_DISP_START2, 0x00 }, 178 + { S1DREG_LCD_MEM_OFF0, 0x90 }, 179 + { S1DREG_LCD_MEM_OFF1, 0x01 }, 180 + { S1DREG_LCD_PIX_PAN, 0x00 }, 181 + { S1DREG_LCD_DISP_FIFO_HTC, 0x00 }, 182 + { S1DREG_LCD_DISP_FIFO_LTC, 0x00 }, 183 + { S1DREG_CRT_DISP_HWIDTH, 0x63 }, 184 + { S1DREG_CRT_NDISP_HPER, 0x1f }, 185 + { S1DREG_CRT_HRTC_START, 0x04 }, 186 + { S1DREG_CRT_HRTC_PWIDTH, 0x8f }, 187 + { S1DREG_CRT_DISP_VHEIGHT0, 0x57 }, 188 + { S1DREG_CRT_DISP_VHEIGHT1, 0x02 }, 189 + { S1DREG_CRT_NDISP_VPER, 0x1b }, 190 + { S1DREG_CRT_VRTC_START, 0x00 }, 191 + { S1DREG_CRT_VRTC_PWIDTH, 0x83 }, 192 + { S1DREG_TV_OUT_CTL, 0x10 }, 193 + { S1DREG_CRT_DISP_MODE, 0x05 }, 194 + { S1DREG_CRT_DISP_START0, 0x00 }, 195 + { S1DREG_CRT_DISP_START1, 0x00 }, 196 + { S1DREG_CRT_DISP_START2, 0x00 }, 197 + { S1DREG_CRT_MEM_OFF0, 0x20 }, 198 + { S1DREG_CRT_MEM_OFF1, 0x03 }, 199 + { S1DREG_CRT_PIX_PAN, 0x00 }, 200 + { S1DREG_CRT_DISP_FIFO_HTC, 0x00 }, 201 + { S1DREG_CRT_DISP_FIFO_LTC, 0x00 }, 202 + { S1DREG_LCD_CUR_CTL, 0x00 }, 203 + { S1DREG_LCD_CUR_START, 0x01 }, 204 + { S1DREG_LCD_CUR_XPOS0, 0x00 }, 205 + { S1DREG_LCD_CUR_XPOS1, 0x00 }, 206 + { S1DREG_LCD_CUR_YPOS0, 0x00 }, 207 + { S1DREG_LCD_CUR_YPOS1, 0x00 }, 208 + { S1DREG_LCD_CUR_BCTL0, 0x00 }, 209 + { S1DREG_LCD_CUR_GCTL0, 0x00 }, 210 + { S1DREG_LCD_CUR_RCTL0, 0x00 }, 211 + { S1DREG_LCD_CUR_BCTL1, 0x1f }, 212 + { S1DREG_LCD_CUR_GCTL1, 0x3f }, 213 + { S1DREG_LCD_CUR_RCTL1, 0x1f }, 214 + { S1DREG_LCD_CUR_FIFO_HTC, 0x00 }, 215 + { S1DREG_CRT_CUR_CTL, 0x00 }, 216 + { S1DREG_CRT_CUR_START, 0x01 }, 217 + { S1DREG_CRT_CUR_XPOS0, 0x00 }, 218 + { S1DREG_CRT_CUR_XPOS1, 0x00 }, 219 + { S1DREG_CRT_CUR_YPOS0, 0x00 }, 220 + { S1DREG_CRT_CUR_YPOS1, 0x00 }, 221 + { S1DREG_CRT_CUR_BCTL0, 0x00 }, 222 + { S1DREG_CRT_CUR_GCTL0, 0x00 }, 223 + { S1DREG_CRT_CUR_RCTL0, 0x00 }, 224 + { S1DREG_CRT_CUR_BCTL1, 0x1f }, 225 + { S1DREG_CRT_CUR_GCTL1, 0x3f }, 226 + { S1DREG_CRT_CUR_RCTL1, 0x1f }, 227 + { S1DREG_CRT_CUR_FIFO_HTC, 0x00 }, 228 + { S1DREG_BBLT_CTL0, 0x00 }, 229 + { S1DREG_BBLT_CTL1, 0x00 }, 230 + { S1DREG_BBLT_CC_EXP, 0x00 }, 231 + { S1DREG_BBLT_OP, 0x00 }, 232 + { S1DREG_BBLT_SRC_START0, 0x00 }, 233 + { S1DREG_BBLT_SRC_START1, 0x00 }, 234 + { S1DREG_BBLT_SRC_START2, 0x00 }, 235 + { S1DREG_BBLT_DST_START0, 0x00 }, 236 + { S1DREG_BBLT_DST_START1, 0x00 }, 237 + { S1DREG_BBLT_DST_START2, 0x00 }, 238 + { S1DREG_BBLT_MEM_OFF0, 0x00 }, 239 + { S1DREG_BBLT_MEM_OFF1, 0x00 }, 240 + { S1DREG_BBLT_WIDTH0, 0x00 }, 241 + { S1DREG_BBLT_WIDTH1, 0x00 }, 242 + { S1DREG_BBLT_HEIGHT0, 0x00 }, 243 + { S1DREG_BBLT_HEIGHT1, 0x00 }, 244 + { S1DREG_BBLT_BGC0, 0x00 }, 245 + { S1DREG_BBLT_BGC1, 0x00 }, 246 + { S1DREG_BBLT_FGC0, 0x00 }, 247 + { S1DREG_BBLT_FGC1, 0x00 }, 248 + { S1DREG_LKUP_MODE, 0x00 }, 249 + { S1DREG_LKUP_ADDR, 0x00 }, 250 + { S1DREG_PS_CNF, 0x10 }, 251 + { S1DREG_PS_STATUS, 0x00 }, 252 + { S1DREG_CPU2MEM_WDOGT, 0x00 }, 253 + { S1DREG_COM_DISP_MODE, 0x02 }, 254 + }; 255 + 256 + static struct s1d13xxxfb_pdata s1d13806_platform_data = { 257 + .initregs = s1d13806_initregs, 258 + .initregssize = ARRAY_SIZE(s1d13806_initregs), 259 + }; 260 + 261 + static struct resource s1d13806_resources[] = { 262 + [0] = { 263 + .start = 0x07200000, 264 + .end = 0x07200000 + 0x00200000 - 1, 265 + .flags = IORESOURCE_MEM, 266 + }, 267 + [1] = { 268 + .start = 0x07000000, 269 + .end = 0x07000000 + 0x00200000 - 1, 270 + .flags = IORESOURCE_MEM, 271 + }, 272 + }; 273 + 274 + static struct platform_device s1d13806_device = { 275 + .name = "s1d13806fb", 276 + .id = -1, 277 + .num_resources = ARRAY_SIZE(s1d13806_resources), 278 + .resource = s1d13806_resources, 279 + 280 + .dev = { 281 + .platform_data = &s1d13806_platform_data, 282 + }, 283 + }; 284 + #endif 285 + 286 + static struct platform_device *microdev_devices[] __initdata = { 287 + &smc91x_device, 288 + #ifdef CONFIG_FB_S1D13XXX 289 + &s1d13806_device, 290 + #endif 291 + }; 292 + 293 + static int __init microdev_devices_setup(void) 143 294 { 144 - return platform_device_register(&smc91x_device); 295 + return platform_add_devices(microdev_devices, ARRAY_SIZE(microdev_devices)); 145 296 } 146 297 147 - __initcall(smc91x_setup); 298 + __initcall(microdev_devices_setup); 148 299 149 - /* 150 - * Initialize the board 151 - */ 152 300 void __init platform_setup(void) 153 301 { 154 302 int * const fpgaRevisionRegister = (int*)(MICRODEV_FPGA_GP_BASE + 0x8ul);
+254 -160
arch/sh/configs/microdev_defconfig
··· 1 1 # 2 2 # Automatically generated make config: don't edit 3 - # Linux kernel version: 2.6.11-sh 4 - # Wed Mar 2 15:09:41 2005 3 + # Linux kernel version: 2.6.16-rc1 4 + # Fri Jan 27 19:43:20 2006 5 5 # 6 6 CONFIG_SUPERH=y 7 - CONFIG_UID16=y 8 7 CONFIG_RWSEM_GENERIC_SPINLOCK=y 9 8 CONFIG_GENERIC_HARDIRQS=y 10 9 CONFIG_GENERIC_IRQ_PROBE=y ··· 16 17 CONFIG_CLEAN_COMPILE=y 17 18 CONFIG_BROKEN_ON_SMP=y 18 19 CONFIG_LOCK_KERNEL=y 20 + CONFIG_INIT_ENV_ARG_LIMIT=32 19 21 20 22 # 21 23 # General setup 22 24 # 23 25 CONFIG_LOCALVERSION="" 26 + CONFIG_LOCALVERSION_AUTO=y 24 27 CONFIG_SWAP=y 25 28 # CONFIG_SYSVIPC is not set 26 29 # CONFIG_POSIX_MQUEUE is not set ··· 30 29 # CONFIG_BSD_PROCESS_ACCT_V3 is not set 31 30 CONFIG_SYSCTL=y 32 31 # CONFIG_AUDIT is not set 33 - CONFIG_LOG_BUF_SHIFT=14 34 - CONFIG_HOTPLUG=y 35 - CONFIG_KOBJECT_UEVENT=y 36 32 # CONFIG_IKCONFIG is not set 33 + CONFIG_INITRAMFS_SOURCE="" 34 + CONFIG_UID16=y 35 + # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set 37 36 CONFIG_EMBEDDED=y 38 37 CONFIG_KALLSYMS=y 39 38 # CONFIG_KALLSYMS_EXTRA_PASS is not set 39 + CONFIG_HOTPLUG=y 40 + CONFIG_PRINTK=y 41 + CONFIG_BUG=y 42 + CONFIG_ELF_CORE=y 43 + CONFIG_BASE_FULL=y 40 44 CONFIG_FUTEX=y 41 45 CONFIG_EPOLL=y 42 - # CONFIG_CC_OPTIMIZE_FOR_SIZE is not set 43 46 CONFIG_SHMEM=y 44 47 CONFIG_CC_ALIGN_FUNCTIONS=0 45 48 CONFIG_CC_ALIGN_LABELS=0 46 49 CONFIG_CC_ALIGN_LOOPS=0 47 50 CONFIG_CC_ALIGN_JUMPS=0 51 + CONFIG_SLAB=y 48 52 # CONFIG_TINY_SHMEM is not set 53 + CONFIG_BASE_SMALL=0 54 + # CONFIG_SLOB is not set 49 55 50 56 # 51 57 # Loadable module support 52 58 # 53 59 # CONFIG_MODULES is not set 60 + 61 + # 62 + # Block layer 63 + # 64 + # CONFIG_LBD is not set 65 + 66 + # 67 + # IO Schedulers 68 + # 69 + CONFIG_IOSCHED_NOOP=y 70 + CONFIG_IOSCHED_AS=y 71 + CONFIG_IOSCHED_DEADLINE=y 72 + CONFIG_IOSCHED_CFQ=y 73 + CONFIG_DEFAULT_AS=y 74 + # CONFIG_DEFAULT_DEADLINE is not set 75 + # CONFIG_DEFAULT_CFQ is not set 76 + # CONFIG_DEFAULT_NOOP is not set 77 + CONFIG_DEFAULT_IOSCHED="anticipatory" 54 78 55 79 # 56 80 # System type ··· 87 61 # CONFIG_SH_7751_SYSTEMH is not set 88 62 # CONFIG_SH_STB1_HARP is not set 89 63 # CONFIG_SH_STB1_OVERDRIVE is not set 90 - # CONFIG_SH_HP620 is not set 91 - # CONFIG_SH_HP680 is not set 92 - # CONFIG_SH_HP690 is not set 64 + # CONFIG_SH_HP6XX is not set 93 65 # CONFIG_SH_CQREEK is not set 94 66 # CONFIG_SH_DMIDA is not set 95 67 # CONFIG_SH_EC3104 is not set ··· 102 78 # CONFIG_SH_SECUREEDGE5410 is not set 103 79 # CONFIG_SH_HS7751RVOIP is not set 104 80 # CONFIG_SH_RTS7751R2D is not set 81 + # CONFIG_SH_R7780RP is not set 105 82 # CONFIG_SH_EDOSK7705 is not set 106 83 CONFIG_SH_SH4202_MICRODEV=y 84 + # CONFIG_SH_LANDISK is not set 85 + # CONFIG_SH_TITAN is not set 107 86 # CONFIG_SH_UNKNOWN is not set 108 - # CONFIG_CPU_SH2 is not set 109 - # CONFIG_CPU_SH3 is not set 87 + 88 + # 89 + # Processor selection 90 + # 110 91 CONFIG_CPU_SH4=y 92 + 93 + # 94 + # SH-2 Processor Support 95 + # 111 96 # CONFIG_CPU_SUBTYPE_SH7604 is not set 97 + 98 + # 99 + # SH-3 Processor Support 100 + # 112 101 # CONFIG_CPU_SUBTYPE_SH7300 is not set 113 102 # CONFIG_CPU_SUBTYPE_SH7705 is not set 114 103 # CONFIG_CPU_SUBTYPE_SH7707 is not set 115 104 # CONFIG_CPU_SUBTYPE_SH7708 is not set 116 105 # CONFIG_CPU_SUBTYPE_SH7709 is not set 106 + 107 + # 108 + # SH-4 Processor Support 109 + # 117 110 # CONFIG_CPU_SUBTYPE_SH7750 is not set 111 + # CONFIG_CPU_SUBTYPE_SH7091 is not set 112 + # CONFIG_CPU_SUBTYPE_SH7750R is not set 113 + # CONFIG_CPU_SUBTYPE_SH7750S is not set 118 114 # CONFIG_CPU_SUBTYPE_SH7751 is not set 115 + # CONFIG_CPU_SUBTYPE_SH7751R is not set 119 116 # CONFIG_CPU_SUBTYPE_SH7760 is not set 120 - # CONFIG_CPU_SUBTYPE_SH73180 is not set 117 + CONFIG_CPU_SUBTYPE_SH4_202=y 118 + 119 + # 120 + # ST40 Processor Support 121 + # 121 122 # CONFIG_CPU_SUBTYPE_ST40STB1 is not set 122 123 # CONFIG_CPU_SUBTYPE_ST40GX1 is not set 123 - CONFIG_CPU_SUBTYPE_SH4_202=y 124 + 125 + # 126 + # SH-4A Processor Support 127 + # 128 + # CONFIG_CPU_SUBTYPE_SH73180 is not set 129 + # CONFIG_CPU_SUBTYPE_SH7770 is not set 130 + # CONFIG_CPU_SUBTYPE_SH7780 is not set 131 + 132 + # 133 + # Memory management options 134 + # 124 135 CONFIG_MMU=y 125 - CONFIG_CMDLINE_BOOL=y 126 - CONFIG_CMDLINE="console=ttySC0,115200" 127 - CONFIG_MEMORY_START=0x08000000 128 - CONFIG_MEMORY_SIZE=0x04000000 129 - CONFIG_MEMORY_SET=y 130 - # CONFIG_MEMORY_OVERRIDE is not set 131 - CONFIG_SH_RTC=y 132 - CONFIG_SH_FPU=y 133 - CONFIG_ZERO_PAGE_OFFSET=0x00001000 134 - CONFIG_BOOT_LINK_OFFSET=0x00800000 135 - CONFIG_CPU_LITTLE_ENDIAN=y 136 - CONFIG_PREEMPT=y 137 - # CONFIG_UBC_WAKEUP is not set 136 + CONFIG_SELECT_MEMORY_MODEL=y 137 + CONFIG_FLATMEM_MANUAL=y 138 + # CONFIG_DISCONTIGMEM_MANUAL is not set 139 + # CONFIG_SPARSEMEM_MANUAL is not set 140 + CONFIG_FLATMEM=y 141 + CONFIG_FLAT_NODE_MEM_MAP=y 142 + # CONFIG_SPARSEMEM_STATIC is not set 143 + CONFIG_SPLIT_PTLOCK_CPUS=4 144 + 145 + # 146 + # Cache configuration 147 + # 148 + # CONFIG_SH_DIRECT_MAPPED is not set 138 149 # CONFIG_SH_WRITETHROUGH is not set 139 150 # CONFIG_SH_OCRAM is not set 151 + CONFIG_MEMORY_START=0x08000000 152 + CONFIG_MEMORY_SIZE=0x04000000 153 + 154 + # 155 + # Processor features 156 + # 157 + CONFIG_CPU_LITTLE_ENDIAN=y 158 + CONFIG_SH_RTC=y 159 + CONFIG_SH_FPU=y 140 160 # CONFIG_SH_STORE_QUEUES is not set 141 - # CONFIG_SMP is not set 142 - CONFIG_SH_PCLK_CALC=y 143 - CONFIG_SH_PCLK_FREQ=65986048 161 + CONFIG_CPU_HAS_INTEVT=y 162 + CONFIG_CPU_HAS_SR_RB=y 163 + 164 + # 165 + # Timer support 166 + # 167 + CONFIG_SH_TMU=y 168 + CONFIG_SH_PCLK_FREQ=66000000 144 169 145 170 # 146 171 # CPU Frequency scaling ··· 210 137 CONFIG_HEARTBEAT=y 211 138 212 139 # 213 - # Bus options (PCI, PCMCIA, EISA, MCA, ISA) 140 + # Kernel features 214 141 # 215 - CONFIG_ISA=y 142 + # CONFIG_KEXEC is not set 143 + CONFIG_PREEMPT=y 144 + # CONFIG_SMP is not set 145 + 146 + # 147 + # Boot options 148 + # 149 + CONFIG_ZERO_PAGE_OFFSET=0x00001000 150 + CONFIG_BOOT_LINK_OFFSET=0x00800000 151 + # CONFIG_UBC_WAKEUP is not set 152 + CONFIG_CMDLINE_BOOL=y 153 + CONFIG_CMDLINE="console=ttySC0,115200" 154 + 155 + # 156 + # Bus options 157 + # 158 + # CONFIG_SUPERHYWAY is not set 216 159 # CONFIG_PCI is not set 217 160 218 161 # 219 162 # PCCARD (PCMCIA/CardBus) support 220 163 # 221 164 # CONFIG_PCCARD is not set 222 - 223 - # 224 - # PC-card bridges 225 - # 226 - CONFIG_PCMCIA_PROBE=y 227 165 228 166 # 229 167 # PCI Hotplug Support ··· 248 164 # CONFIG_BINFMT_MISC is not set 249 165 250 166 # 251 - # SH initrd options 167 + # Networking 252 168 # 253 - # CONFIG_EMBEDDED_RAMDISK is not set 169 + CONFIG_NET=y 170 + 171 + # 172 + # Networking options 173 + # 174 + # CONFIG_PACKET is not set 175 + # CONFIG_UNIX is not set 176 + # CONFIG_NET_KEY is not set 177 + CONFIG_INET=y 178 + # CONFIG_IP_MULTICAST is not set 179 + # CONFIG_IP_ADVANCED_ROUTER is not set 180 + CONFIG_IP_FIB_HASH=y 181 + CONFIG_IP_PNP=y 182 + CONFIG_IP_PNP_DHCP=y 183 + # CONFIG_IP_PNP_BOOTP is not set 184 + # CONFIG_IP_PNP_RARP is not set 185 + # CONFIG_NET_IPIP is not set 186 + # CONFIG_NET_IPGRE is not set 187 + # CONFIG_ARPD is not set 188 + # CONFIG_SYN_COOKIES is not set 189 + # CONFIG_INET_AH is not set 190 + # CONFIG_INET_ESP is not set 191 + # CONFIG_INET_IPCOMP is not set 192 + # CONFIG_INET_TUNNEL is not set 193 + CONFIG_INET_DIAG=y 194 + CONFIG_INET_TCP_DIAG=y 195 + # CONFIG_TCP_CONG_ADVANCED is not set 196 + CONFIG_TCP_CONG_BIC=y 197 + # CONFIG_IPV6 is not set 198 + # CONFIG_NETFILTER is not set 199 + 200 + # 201 + # DCCP Configuration (EXPERIMENTAL) 202 + # 203 + # CONFIG_IP_DCCP is not set 204 + 205 + # 206 + # SCTP Configuration (EXPERIMENTAL) 207 + # 208 + # CONFIG_IP_SCTP is not set 209 + 210 + # 211 + # TIPC Configuration (EXPERIMENTAL) 212 + # 213 + # CONFIG_TIPC is not set 214 + # CONFIG_ATM is not set 215 + # CONFIG_BRIDGE is not set 216 + # CONFIG_VLAN_8021Q is not set 217 + # CONFIG_DECNET is not set 218 + # CONFIG_LLC2 is not set 219 + # CONFIG_IPX is not set 220 + # CONFIG_ATALK is not set 221 + # CONFIG_X25 is not set 222 + # CONFIG_LAPB is not set 223 + # CONFIG_NET_DIVERT is not set 224 + # CONFIG_ECONET is not set 225 + # CONFIG_WAN_ROUTER is not set 226 + 227 + # 228 + # QoS and/or fair queueing 229 + # 230 + # CONFIG_NET_SCHED is not set 231 + 232 + # 233 + # Network testing 234 + # 235 + # CONFIG_NET_PKTGEN is not set 236 + # CONFIG_HAMRADIO is not set 237 + # CONFIG_IRDA is not set 238 + # CONFIG_BT is not set 239 + # CONFIG_IEEE80211 is not set 254 240 255 241 # 256 242 # Device Drivers ··· 332 178 CONFIG_STANDALONE=y 333 179 CONFIG_PREVENT_FIRMWARE_BUILD=y 334 180 # CONFIG_FW_LOADER is not set 181 + 182 + # 183 + # Connector - unified userspace <-> kernelspace linker 184 + # 185 + # CONFIG_CONNECTOR is not set 335 186 336 187 # 337 188 # Memory Technology Devices (MTD) ··· 351 192 # 352 193 # Plug and Play support 353 194 # 354 - # CONFIG_PNP is not set 355 195 356 196 # 357 197 # Block devices 358 198 # 359 - # CONFIG_BLK_DEV_FD is not set 360 - # CONFIG_BLK_DEV_XD is not set 361 199 # CONFIG_BLK_DEV_COW_COMMON is not set 362 200 # CONFIG_BLK_DEV_LOOP is not set 363 201 # CONFIG_BLK_DEV_NBD is not set ··· 362 206 CONFIG_BLK_DEV_RAM_COUNT=16 363 207 CONFIG_BLK_DEV_RAM_SIZE=4096 364 208 CONFIG_BLK_DEV_INITRD=y 365 - CONFIG_INITRAMFS_SOURCE="" 366 - # CONFIG_LBD is not set 367 209 # CONFIG_CDROM_PKTCDVD is not set 368 - 369 - # 370 - # IO Schedulers 371 - # 372 - CONFIG_IOSCHED_NOOP=y 373 - CONFIG_IOSCHED_AS=y 374 - CONFIG_IOSCHED_DEADLINE=y 375 - CONFIG_IOSCHED_CFQ=y 376 210 # CONFIG_ATA_OVER_ETH is not set 377 211 378 212 # ··· 387 241 # IDE chipset support/bugfixes 388 242 # 389 243 CONFIG_IDE_GENERIC=y 390 - CONFIG_IDE_SH=y 391 244 # CONFIG_IDE_ARM is not set 392 - # CONFIG_IDE_CHIPSETS is not set 393 245 # CONFIG_BLK_DEV_IDEDMA is not set 394 246 # CONFIG_IDEDMA_AUTO is not set 395 247 # CONFIG_BLK_DEV_HD is not set ··· 395 251 # 396 252 # SCSI device support 397 253 # 254 + # CONFIG_RAID_ATTRS is not set 398 255 # CONFIG_SCSI is not set 399 - 400 - # 401 - # Old CD-ROM drivers (not SCSI, not IDE) 402 - # 403 - # CONFIG_CD_NO_IDESCSI is not set 404 256 405 257 # 406 258 # Multi-device support (RAID and LVM) ··· 406 266 # 407 267 # Fusion MPT device support 408 268 # 269 + # CONFIG_FUSION is not set 409 270 410 271 # 411 272 # IEEE 1394 (FireWire) support ··· 417 276 # 418 277 419 278 # 420 - # Networking support 279 + # Network device support 421 280 # 422 - CONFIG_NET=y 423 - 424 - # 425 - # Networking options 426 - # 427 - # CONFIG_PACKET is not set 428 - # CONFIG_NETLINK_DEV is not set 429 - # CONFIG_UNIX is not set 430 - # CONFIG_NET_KEY is not set 431 - CONFIG_INET=y 432 - # CONFIG_IP_MULTICAST is not set 433 - # CONFIG_IP_ADVANCED_ROUTER is not set 434 - CONFIG_IP_PNP=y 435 - CONFIG_IP_PNP_DHCP=y 436 - # CONFIG_IP_PNP_BOOTP is not set 437 - # CONFIG_IP_PNP_RARP is not set 438 - # CONFIG_NET_IPIP is not set 439 - # CONFIG_NET_IPGRE is not set 440 - # CONFIG_ARPD is not set 441 - # CONFIG_SYN_COOKIES is not set 442 - # CONFIG_INET_AH is not set 443 - # CONFIG_INET_ESP is not set 444 - # CONFIG_INET_IPCOMP is not set 445 - # CONFIG_INET_TUNNEL is not set 446 - CONFIG_IP_TCPDIAG=y 447 - # CONFIG_IP_TCPDIAG_IPV6 is not set 448 - # CONFIG_IPV6 is not set 449 - # CONFIG_NETFILTER is not set 450 - 451 - # 452 - # SCTP Configuration (EXPERIMENTAL) 453 - # 454 - # CONFIG_IP_SCTP is not set 455 - # CONFIG_ATM is not set 456 - # CONFIG_BRIDGE is not set 457 - # CONFIG_VLAN_8021Q is not set 458 - # CONFIG_DECNET is not set 459 - # CONFIG_LLC2 is not set 460 - # CONFIG_IPX is not set 461 - # CONFIG_ATALK is not set 462 - # CONFIG_X25 is not set 463 - # CONFIG_LAPB is not set 464 - # CONFIG_NET_DIVERT is not set 465 - # CONFIG_ECONET is not set 466 - # CONFIG_WAN_ROUTER is not set 467 - 468 - # 469 - # QoS and/or fair queueing 470 - # 471 - # CONFIG_NET_SCHED is not set 472 - # CONFIG_NET_CLS_ROUTE is not set 473 - 474 - # 475 - # Network testing 476 - # 477 - # CONFIG_NET_PKTGEN is not set 478 - # CONFIG_NETPOLL is not set 479 - # CONFIG_NET_POLL_CONTROLLER is not set 480 - # CONFIG_HAMRADIO is not set 481 - # CONFIG_IRDA is not set 482 - # CONFIG_BT is not set 483 281 CONFIG_NETDEVICES=y 484 282 # CONFIG_DUMMY is not set 485 283 # CONFIG_BONDING is not set ··· 426 346 # CONFIG_TUN is not set 427 347 428 348 # 429 - # ARCnet devices 349 + # PHY device support 430 350 # 431 - # CONFIG_ARCNET is not set 351 + # CONFIG_PHYLIB is not set 432 352 433 353 # 434 354 # Ethernet (10 or 100Mbit) ··· 436 356 CONFIG_NET_ETHERNET=y 437 357 CONFIG_MII=y 438 358 # CONFIG_STNIC is not set 439 - # CONFIG_NET_VENDOR_3COM is not set 440 - # CONFIG_LANCE is not set 441 - # CONFIG_NET_VENDOR_SMC is not set 442 359 CONFIG_SMC91X=y 443 - # CONFIG_NET_VENDOR_RACAL is not set 444 - # CONFIG_AT1700 is not set 445 - # CONFIG_DEPCA is not set 446 - # CONFIG_HP100 is not set 447 - # CONFIG_NET_ISA is not set 448 - # CONFIG_NET_PCI is not set 449 - # CONFIG_NET_POCKET is not set 450 360 451 361 # 452 362 # Ethernet (1000 Mbit) ··· 449 379 # 450 380 # Token Ring devices 451 381 # 452 - # CONFIG_TR is not set 453 382 454 383 # 455 384 # Wireless LAN (non-hamradio) ··· 463 394 # CONFIG_SLIP is not set 464 395 # CONFIG_SHAPER is not set 465 396 # CONFIG_NETCONSOLE is not set 397 + # CONFIG_NETPOLL is not set 398 + # CONFIG_NET_POLL_CONTROLLER is not set 466 399 467 400 # 468 401 # ISDN subsystem ··· 482 411 # CONFIG_INPUT is not set 483 412 484 413 # 485 - # Userland interfaces 414 + # Hardware I/O ports 486 415 # 487 - 488 - # 489 - # Input I/O drivers 490 - # 491 - # CONFIG_GAMEPORT is not set 492 - CONFIG_SOUND_GAMEPORT=y 493 416 # CONFIG_SERIO is not set 494 - # CONFIG_SERIO_I8042 is not set 495 - 496 - # 497 - # Input Device Drivers 498 - # 417 + # CONFIG_GAMEPORT is not set 499 418 500 419 # 501 420 # Character devices ··· 525 464 # 526 465 # Ftape, the floppy tape device driver 527 466 # 528 - # CONFIG_DRM is not set 529 467 # CONFIG_RAW_DRIVER is not set 468 + 469 + # 470 + # TPM devices 471 + # 472 + # CONFIG_TCG_TPM is not set 473 + # CONFIG_TELCLOCK is not set 530 474 531 475 # 532 476 # I2C support ··· 539 473 # CONFIG_I2C is not set 540 474 541 475 # 476 + # SPI support 477 + # 478 + # CONFIG_SPI is not set 479 + # CONFIG_SPI_MASTER is not set 480 + 481 + # 542 482 # Dallas's 1-wire bus 543 483 # 544 484 # CONFIG_W1 is not set 545 485 546 486 # 487 + # Hardware Monitoring support 488 + # 489 + CONFIG_HWMON=y 490 + # CONFIG_HWMON_VID is not set 491 + # CONFIG_HWMON_DEBUG_CHIP is not set 492 + 493 + # 547 494 # Misc devices 495 + # 496 + 497 + # 498 + # Multimedia Capabilities Port drivers 548 499 # 549 500 550 501 # ··· 591 508 # CONFIG_USB_ARCH_HAS_OHCI is not set 592 509 593 510 # 594 - # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information 511 + # NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' 595 512 # 596 513 597 514 # ··· 607 524 # 608 525 # InfiniBand support 609 526 # 610 - # CONFIG_INFINIBAND is not set 527 + 528 + # 529 + # SN Devices 530 + # 531 + 532 + # 533 + # EDAC - error detection and reporting (RAS) 534 + # 611 535 612 536 # 613 537 # File systems 614 538 # 615 539 CONFIG_EXT2_FS=y 616 540 # CONFIG_EXT2_FS_XATTR is not set 541 + # CONFIG_EXT2_FS_XIP is not set 617 542 CONFIG_EXT3_FS=y 618 543 CONFIG_EXT3_FS_XATTR=y 619 544 # CONFIG_EXT3_FS_POSIX_ACL is not set ··· 631 540 CONFIG_FS_MBCACHE=y 632 541 # CONFIG_REISERFS_FS is not set 633 542 # CONFIG_JFS_FS is not set 634 - 635 - # 636 - # XFS support 637 - # 543 + # CONFIG_FS_POSIX_ACL is not set 638 544 # CONFIG_XFS_FS is not set 545 + # CONFIG_OCFS2_FS is not set 639 546 # CONFIG_MINIX_FS is not set 640 547 # CONFIG_ROMFS_FS is not set 548 + CONFIG_INOTIFY=y 641 549 # CONFIG_QUOTA is not set 642 550 CONFIG_DNOTIFY=y 643 551 # CONFIG_AUTOFS_FS is not set 644 552 # CONFIG_AUTOFS4_FS is not set 553 + # CONFIG_FUSE_FS is not set 645 554 646 555 # 647 556 # CD-ROM/DVD Filesystems ··· 665 574 CONFIG_PROC_FS=y 666 575 CONFIG_PROC_KCORE=y 667 576 CONFIG_SYSFS=y 668 - CONFIG_DEVFS_FS=y 669 - CONFIG_DEVFS_MOUNT=y 670 - # CONFIG_DEVFS_DEBUG is not set 671 - CONFIG_DEVPTS_FS_XATTR=y 672 - # CONFIG_DEVPTS_FS_SECURITY is not set 673 577 CONFIG_TMPFS=y 674 - # CONFIG_TMPFS_XATTR is not set 675 578 # CONFIG_HUGETLBFS is not set 676 579 # CONFIG_HUGETLB_PAGE is not set 677 580 CONFIG_RAMFS=y 581 + # CONFIG_RELAYFS_FS is not set 582 + # CONFIG_CONFIGFS_FS is not set 678 583 679 584 # 680 585 # Miscellaneous filesystems ··· 694 607 # 695 608 CONFIG_NFS_FS=y 696 609 CONFIG_NFS_V3=y 610 + # CONFIG_NFS_V3_ACL is not set 697 611 CONFIG_NFS_V4=y 698 612 # CONFIG_NFS_DIRECTIO is not set 699 613 # CONFIG_NFSD is not set 700 614 CONFIG_ROOT_NFS=y 701 615 CONFIG_LOCKD=y 702 616 CONFIG_LOCKD_V4=y 617 + CONFIG_NFS_COMMON=y 703 618 CONFIG_SUNRPC=y 704 619 CONFIG_SUNRPC_GSS=y 705 620 CONFIG_RPCSEC_GSS_KRB5=y ··· 711 622 # CONFIG_NCP_FS is not set 712 623 # CONFIG_CODA_FS is not set 713 624 # CONFIG_AFS_FS is not set 625 + # CONFIG_9P_FS is not set 714 626 715 627 # 716 628 # Partition Types ··· 771 681 # 772 682 # Kernel hacking 773 683 # 684 + # CONFIG_PRINTK_TIME is not set 685 + # CONFIG_MAGIC_SYSRQ is not set 774 686 # CONFIG_DEBUG_KERNEL is not set 775 - CONFIG_DEBUG_PREEMPT=y 687 + CONFIG_LOG_BUF_SHIFT=14 776 688 # CONFIG_FRAME_POINTER is not set 777 689 # CONFIG_SH_STANDARD_BIOS is not set 778 690 # CONFIG_EARLY_SCIF_CONSOLE is not set ··· 798 706 # CONFIG_CRYPTO_SHA256 is not set 799 707 # CONFIG_CRYPTO_SHA512 is not set 800 708 # CONFIG_CRYPTO_WP512 is not set 709 + # CONFIG_CRYPTO_TGR192 is not set 801 710 CONFIG_CRYPTO_DES=y 802 711 # CONFIG_CRYPTO_BLOWFISH is not set 803 712 # CONFIG_CRYPTO_TWOFISH is not set ··· 823 730 # Library routines 824 731 # 825 732 # CONFIG_CRC_CCITT is not set 733 + # CONFIG_CRC16 is not set 826 734 CONFIG_CRC32=y 827 735 # CONFIG_LIBCRC32C is not set
-53
include/asm-sh/microdev/io.h
··· 1 - /* 2 - * linux/include/asm-sh/io_microdev.h 3 - * 4 - * Copyright (C) 2003 Sean McGoogan (Sean.McGoogan@superh.com) 5 - * 6 - * IO functions for the SuperH SH4-202 MicroDev board. 7 - * 8 - * May be copied or modified under the terms of the GNU General Public 9 - * License. See linux/COPYING for more information. 10 - * 11 - */ 12 - 13 - 14 - #ifndef _ASM_SH_IO_MICRODEV_H 15 - #define _ASM_SH_IO_MICRODEV_H 16 - 17 - extern unsigned long microdev_isa_port2addr(unsigned long offset); 18 - 19 - extern unsigned char microdev_inb(unsigned long port); 20 - extern unsigned short microdev_inw(unsigned long port); 21 - extern unsigned int microdev_inl(unsigned long port); 22 - 23 - extern void microdev_outb(unsigned char value, unsigned long port); 24 - extern void microdev_outw(unsigned short value, unsigned long port); 25 - extern void microdev_outl(unsigned int value, unsigned long port); 26 - 27 - extern unsigned char microdev_inb_p(unsigned long port); 28 - extern unsigned short microdev_inw_p(unsigned long port); 29 - extern unsigned int microdev_inl_p(unsigned long port); 30 - 31 - extern void microdev_outb_p(unsigned char value, unsigned long port); 32 - extern void microdev_outw_p(unsigned short value, unsigned long port); 33 - extern void microdev_outl_p(unsigned int value, unsigned long port); 34 - 35 - extern void microdev_insb(unsigned long port, void *addr, unsigned long count); 36 - extern void microdev_insw(unsigned long port, void *addr, unsigned long count); 37 - extern void microdev_insl(unsigned long port, void *addr, unsigned long count); 38 - 39 - extern void microdev_outsb(unsigned long port, const void *addr, unsigned long count); 40 - extern void microdev_outsw(unsigned long port, const void *addr, unsigned long count); 41 - extern void microdev_outsl(unsigned long port, const void *addr, unsigned long count); 42 - 43 - #if defined(CONFIG_PCI) 44 - extern unsigned char microdev_pci_inb(unsigned long port); 45 - extern unsigned short microdev_pci_inw(unsigned long port); 46 - extern unsigned long microdev_pci_inl(unsigned long port); 47 - extern void microdev_pci_outb(unsigned char data, unsigned long port); 48 - extern void microdev_pci_outw(unsigned short data, unsigned long port); 49 - extern void microdev_pci_outl(unsigned long data, unsigned long port); 50 - #endif 51 - 52 - #endif /* _ASM_SH_IO_MICRODEV_H */ 53 -
+34 -26
include/asm-sh/microdev/irq.h include/asm-sh/microdev.h
··· 1 1 /* 2 - * linux/include/asm-sh/irq_microdev.h 2 + * linux/include/asm-sh/microdev.h 3 3 * 4 4 * Copyright (C) 2003 Sean McGoogan (Sean.McGoogan@superh.com) 5 5 * 6 - * IRQ functions for the SuperH SH4-202 MicroDev board. 6 + * Definitions for the SuperH SH4-202 MicroDev board. 7 7 * 8 8 * May be copied or modified under the terms of the GNU General Public 9 9 * License. See linux/COPYING for more information. 10 - * 11 10 */ 12 - 13 - 14 - #ifndef _ASM_SH_IRQ_MICRODEV_H 15 - #define _ASM_SH_IRQ_MICRODEV_H 11 + #ifndef __ASM_SH_MICRODEV_H 12 + #define __ASM_SH_MICRODEV_H 16 13 17 14 extern void init_microdev_irq(void); 18 15 extern void microdev_print_fpga_intc_status(void); 19 16 20 - 21 - /* 22 - * The following are useful macros for manipulating the 23 - * interrupt controller (INTC) on the CPU-board FPGA. 24 - * It should be noted that there is an INTC on the FPGA, 25 - * and a seperate INTC on the SH4-202 core - these are 26 - * two different things, both of which need to be prorammed 27 - * to correctly route - unfortunately, they have the 28 - * same name and abbreviations! 29 - */ 17 + /* 18 + * The following are useful macros for manipulating the interrupt 19 + * controller (INTC) on the CPU-board FPGA. should be noted that there 20 + * is an INTC on the FPGA, and a seperate INTC on the SH4-202 core - 21 + * these are two different things, both of which need to be prorammed to 22 + * correctly route - unfortunately, they have the same name and 23 + * abbreviations! 24 + */ 30 25 #define MICRODEV_FPGA_INTC_BASE 0xa6110000ul /* INTC base address on CPU-board FPGA */ 31 26 #define MICRODEV_FPGA_INTENB_REG (MICRODEV_FPGA_INTC_BASE+0ul) /* Interrupt Enable Register on INTC on CPU-board FPGA */ 32 27 #define MICRODEV_FPGA_INTDSB_REG (MICRODEV_FPGA_INTC_BASE+8ul) /* Interrupt Disable Register on INTC on CPU-board FPGA */ ··· 33 38 #define MICRODEV_FPGA_INTREQ_REG (MICRODEV_FPGA_INTC_BASE+0x38ul) /* Interrupt Request Register on INTC on CPU-board FPGA */ 34 39 35 40 36 - /* 37 - * The following are the IRQ numbers for the Linux Kernel for external interrupts. 38 - * i.e. the numbers seen by 'cat /proc/interrupt'. 39 - */ 41 + /* 42 + * The following are the IRQ numbers for the Linux Kernel for external 43 + * interrupts. i.e. the numbers seen by 'cat /proc/interrupt'. 44 + */ 40 45 #define MICRODEV_LINUX_IRQ_KEYBOARD 1 /* SuperIO Keyboard */ 41 46 #define MICRODEV_LINUX_IRQ_SERIAL1 2 /* SuperIO Serial #1 */ 42 47 #define MICRODEV_LINUX_IRQ_ETHERNET 3 /* on-board Ethnernet */ ··· 46 51 #define MICRODEV_LINUX_IRQ_IDE2 13 /* SuperIO IDE #2 */ 47 52 #define MICRODEV_LINUX_IRQ_IDE1 14 /* SuperIO IDE #1 */ 48 53 49 - /* 50 - * The following are the IRQ numbers for the INTC on the FPGA for external interrupts. 51 - * i.e. the bits in the INTC registers in the FPGA. 52 - */ 54 + /* 55 + * The following are the IRQ numbers for the INTC on the FPGA for 56 + * external interrupts. i.e. the bits in the INTC registers in the 57 + * FPGA. 58 + */ 53 59 #define MICRODEV_FPGA_IRQ_KEYBOARD 1 /* SuperIO Keyboard */ 54 60 #define MICRODEV_FPGA_IRQ_SERIAL1 3 /* SuperIO Serial #1 */ 55 61 #define MICRODEV_FPGA_IRQ_SERIAL2 4 /* SuperIO Serial #2 */ ··· 65 69 #define MICRODEV_IRQ_PCI_INTC 10 66 70 #define MICRODEV_IRQ_PCI_INTD 11 67 71 68 - #endif /* _ASM_SH_IRQ_MICRODEV_H */ 72 + #define __IO_PREFIX microdev 73 + #include <asm/io_generic.h> 74 + 75 + #if defined(CONFIG_PCI) 76 + unsigned char microdev_pci_inb(unsigned long port); 77 + unsigned short microdev_pci_inw(unsigned long port); 78 + unsigned long microdev_pci_inl(unsigned long port); 79 + void microdev_pci_outb(unsigned char data, unsigned long port); 80 + void microdev_pci_outw(unsigned short data, unsigned long port); 81 + void microdev_pci_outl(unsigned long data, unsigned long port); 82 + #endif 83 + 84 + #endif /* __ASM_SH_MICRODEV_H */