Home
last modified time | relevance | path

Searched refs:io_addr (Results 1 – 25 of 30) sorted by relevance

12

/linux-2.4.37.9/drivers/scsi/
DNCR53C9x.h204 unsigned char io_addr[64]; /* dummy */ member
206 #define esp_tclow io_addr /* rw Low bits of the transfer count 0x00 */
207 #define esp_tcmed io_addr + (1<<(esp->shift)) /* rw Mid bits of the transfer count 0x04 */
208 #define esp_fdata io_addr + (2<<(esp->shift)) /* rw FIFO data bits 0x08 */
209 #define esp_cmnd io_addr + (3<<(esp->shift)) /* rw SCSI command bits 0x0c */
210 #define esp_status io_addr + (4<<(esp->shift)) /* ro ESP status register 0x10 */
212 #define esp_intrpt io_addr + (5<<(esp->shift)) /* ro Kind of interrupt 0x14 */
214 #define esp_sstep io_addr + (6<<(esp->shift)) /* ro Sequence step register 0x18 */
216 #define esp_fflags io_addr + (7<<(esp->shift)) /* ro Bits of current FIFO info 0x1c */
218 #define esp_cfg1 io_addr + (8<<(esp->shift)) /* rw First configuration register 0x20 */
[all …]
Dmca_53c9x.c127 esp->eregs->io_addr = tmp_io_addr + 0x10; in mca_esp_detect()
129 if (esp->eregs->io_addr == 0x0000) { in mca_esp_detect()
271 tmp_byte = inb(esp->eregs->io_addr - 0x0E); in mca_esp_release()
273 outb(tmp_byte, esp->eregs->io_addr - 0x0E); in mca_esp_release()
357 outb(inb(esp->eregs->io_addr - 0x0E) & ~0x40, in dma_ints_off()
358 esp->eregs->io_addr - 0x0E); in dma_ints_off()
367 outb(inb(esp->eregs->io_addr - 0x0E) | 0x40, in dma_ints_on()
368 esp->eregs->io_addr - 0x0E); in dma_ints_on()
381 return (!(inb(esp->eregs->io_addr - 0x04) & 1) && in dma_irq_p()
382 !(inb(esp->eregs->io_addr - 0x04) & 2) ); in dma_irq_p()
[all …]
Dips.c735 if (ha->io_addr) in ips_release()
736 release_region(ha->io_addr, ha->io_len); in ips_release()
2159 if (ha->io_addr)
2162 ha->io_addr, ha->io_len);
2472 outl(0, ha->io_addr + IPS_REG_FLAP);
2476 if (inb(ha->io_addr + IPS_REG_FLDP) != 0x55)
2479 outl(cpu_to_le32(1), ha->io_addr + IPS_REG_FLAP);
2483 if (inb(ha->io_addr + IPS_REG_FLDP) != 0xAA)
2487 outl(cpu_to_le32(0x1FF), ha->io_addr + IPS_REG_FLAP);
2491 major = inb(ha->io_addr + IPS_REG_FLDP);
[all …]
Dsim710.c1469 int io_addr; in sim710_detect() local
1471 for (io_addr = 0x9000; no_of_boards < MAXBOARDS && io_addr >= 0x1000; io_addr -= 0x1000) { in sim710_detect()
1472 if (request_region(io_addr, 0x40, "sim710") != NULL) { in sim710_detect()
1473 int id0 = inw(io_addr + 0xc80); in sim710_detect()
1474 int id1 = inw(io_addr + 0xc82); in sim710_detect()
1479 bases[no_of_boards] = io_addr; in sim710_detect()
1485 switch (inb(io_addr + 0xc88)) { in sim710_detect()
1507 release_region(io_addr, 64); in sim710_detect()
/linux-2.4.37.9/drivers/char/
Dpcwd.c191 int io_addr; /* Card's base address */ member
213 status = inb_p (pcwd_info.io_addr); in pcwd_get_stat_reva()
239 status = inb_p (pcwd_info.io_addr + 1); in pcwd_get_stat()
244 outb_p (0x01, pcwd_info.io_addr + 1); in pcwd_get_stat()
266 wdrst_stat = inb_p (pcwd_info.io_addr); in pcwd_tickle_reva()
269 outb_p (wdrst_stat, pcwd_info.io_addr + 1); in pcwd_tickle_reva()
281 outb_p (0x42, pcwd_info.io_addr); in pcwd_tickle()
328 rv = inb_p (pcwd_info.io_addr); in pcwd_ioctl()
453 c = inb_p (pcwd_info.io_addr); in pcwd_read()
514 outb_p (0x00, pcwd_info.io_addr + 3); in pcwd_enable_card()
[all …]
/linux-2.4.37.9/arch/sh64/lib/
Dio.c30 static int io_addr(int x) { in io_addr() function
52 r = ctrl_inb(io_addr(port)); in inb()
53 dprintk("inb(0x%x)=0x%x (0x%x)\n", port, r, io_addr(port)); in inb()
61 r = ctrl_inw(io_addr(port)); in inw()
62 dprintk("inw(0x%x)=0x%x (0x%x)\n", port, r, io_addr(port)); in inw()
70 r = ctrl_inl(io_addr(port)); in inl()
71 dprintk("inl(0x%x)=0x%x (0x%x)\n", port, r, io_addr(port)); in inl()
77 dprintk("outb(0x%x,0x%x) (0x%x)\n", value, port, io_addr(port)); in outb()
78 ctrl_outb(value, io_addr(port)); in outb()
83 dprintk("outw(0x%x,0x%x) (0x%x)\n", value, port, io_addr(port)); in outw()
[all …]
/linux-2.4.37.9/drivers/usb/host/
Dusb-uhci-debug.h152 unsigned int io_addr = s->io_addr; in uhci_show_status() local
158 usbcmd = inw (io_addr + 0); in uhci_show_status()
159 usbstat = inw (io_addr + 2); in uhci_show_status()
160 usbint = inw (io_addr + 4); in uhci_show_status()
161 usbfrnum = inw (io_addr + 6); in uhci_show_status()
162 flbaseadd = inl (io_addr + 8); in uhci_show_status()
163 sof = inb (io_addr + 12); in uhci_show_status()
164 portsc1 = inw (io_addr + 16); in uhci_show_status()
165 portsc2 = inw (io_addr + 18); in uhci_show_status()
Duhci.c1874 return inw(uhci->io_addr + USBFRNUM); in uhci_get_current_frame_number()
1964 unsigned int io_addr = uhci->io_addr; in rh_send_irq() local
1971 data |= ((inw(io_addr + USBPORTSC1 + i * 2) & 0xa) > 0 ? (1 << (i + 1)) : 0); in rh_send_irq()
1983 inw(io_addr + USBPORTSC1), inw(io_addr + USBPORTSC2), data); in rh_send_irq()
2072 status = inw(io_addr + USBPORTSC1 + 2 * (wIndex-1)); \
2074 outw(status, io_addr + USBPORTSC1 + 2 * (wIndex-1))
2077 status = inw(io_addr + USBPORTSC1 + 2 * (wIndex-1)); \
2079 outw(status, io_addr + USBPORTSC1 + 2 * (wIndex-1))
2094 unsigned int io_addr = uhci->io_addr; in rh_submit_urb() local
2140 status = inw(io_addr + USBPORTSC1 + 2 * (wIndex - 1)); in rh_submit_urb()
[all …]
Duhci-debug.h135 unsigned int io_addr = uhci->io_addr; in uhci_show_status() local
145 usbcmd = inw(io_addr + 0); in uhci_show_status()
146 usbstat = inw(io_addr + 2); in uhci_show_status()
147 usbint = inw(io_addr + 4); in uhci_show_status()
148 usbfrnum = inw(io_addr + 6); in uhci_show_status()
149 flbaseadd = inl(io_addr + 8); in uhci_show_status()
150 sof = inb(io_addr + 12); in uhci_show_status()
151 portsc1 = inw(io_addr + 16); in uhci_show_status()
152 portsc2 = inw(io_addr + 18); in uhci_show_status()
Dusb-uhci.c1888 unsigned int io_addr = uhci->io_addr; in rh_send_irq() local
1892 data |= ((inw (io_addr + USBPORTSC1 + i * 2) & 0xa) > 0 ? (1 << (i + 1)) : 0); in rh_send_irq()
1902 inw (io_addr + USBPORTSC1), inw (io_addr + USBPORTSC2), data); in rh_send_irq()
1950 status = inw(io_addr+USBPORTSC1+2*(wIndex-1)); \
1952 outw(status, io_addr+USBPORTSC1+2*(wIndex-1))
1955 status = inw(io_addr+USBPORTSC1+2*(wIndex-1)); \
1957 outw(status, io_addr+USBPORTSC1+2*(wIndex-1))
1978 unsigned int io_addr = uhci->io_addr; in rh_submit_urb() local
2030 status = inw (io_addr + USBPORTSC1 + 2 * (wIndex - 1)); in rh_submit_urb()
2129 uhci->io_addr, "UHCI", in rh_submit_urb()
[all …]
Dusb-uhci.h182 unsigned int io_addr; member
226 #define UHCI_GET_CURRENT_FRAME(uhci) (inw ((uhci)->io_addr + USBFRNUM))
/linux-2.4.37.9/arch/sh/overdrive/
Dio.c31 #define io_addr(x) (((unsigned)(x))|PCI_GTIO_BASE) macro
36 return readb(io_addr(port)) & 0xff; in od_inb()
43 return readw(io_addr(port)) & 0xffff; in od_inw()
49 return readl(io_addr(port)); in od_inl()
55 writeb(value, io_addr(port)); in od_outb()
61 writew(value, io_addr(port)); in od_outw()
67 writel(value, io_addr(port)); in od_outl()
/linux-2.4.37.9/drivers/sound/
Dgus_card.c61 int io_addr; in probe_gus() local
88 for (io_addr = 0x210; io_addr <= 0x260; io_addr += 0x10) in probe_gus()
89 if (io_addr != hw_config->io_base) /* in probe_gus()
92 if (!check_region(io_addr, 16)) in probe_gus()
93 if (!check_region(io_addr + 0x100, 16)) in probe_gus()
94 if (gus_wave_detect(io_addr)) in probe_gus()
96 hw_config->io_base = io_addr; in probe_gus()
Dopl3.c85 static void opl3_command(int io_addr, unsigned int addr, unsigned int val);
722 static void opl3_command (int io_addr, unsigned int addr, unsigned int val) in opl3_command() argument
731 outb(((unsigned char) (addr & 0xff)), io_addr); in opl3_command()
737 inb(io_addr); in opl3_command()
739 outb(((unsigned char) (val & 0xff)), io_addr + 1); in opl3_command()
745 inb(io_addr); in opl3_command()
/linux-2.4.37.9/include/asm-x86_64/
Dio.h233 static inline int check_signature(unsigned long io_addr, in check_signature() argument
238 if (readb(io_addr) != *signature) in check_signature()
240 io_addr++; in check_signature()
249 static inline int isa_check_signature(unsigned long io_addr, in isa_check_signature() argument
254 if (isa_readb(io_addr) != *signature) in isa_check_signature()
256 io_addr++; in isa_check_signature()
/linux-2.4.37.9/include/asm-i386/
Dmca_dma.h167 static __inline__ void mca_set_dma_io(unsigned int dmanr, unsigned int io_addr) in mca_set_dma_io() argument
174 outb(io_addr & 0xff, MCA_DMA_REG_EXE); in mca_set_dma_io()
175 outb((io_addr >> 8) & 0xff, MCA_DMA_REG_EXE); in mca_set_dma_io()
Dio.h233 static inline int check_signature(unsigned long io_addr, in check_signature() argument
238 if (readb(io_addr) != *signature) in check_signature()
240 io_addr++; in check_signature()
263 static inline int isa_check_signature(unsigned long io_addr, in isa_check_signature() argument
268 if (isa_readb(io_addr) != *signature) in isa_check_signature()
270 io_addr++; in isa_check_signature()
/linux-2.4.37.9/include/asm-mips64/
Dio.h210 static inline int check_signature(unsigned long io_addr, in check_signature() argument
215 if (readb(io_addr) != *signature) in check_signature()
217 io_addr++; in check_signature()
239 static inline int isa_check_signature(unsigned long io_addr, in isa_check_signature() argument
244 if (isa_readb(io_addr) != *signature) in isa_check_signature()
246 io_addr++; in isa_check_signature()
/linux-2.4.37.9/include/asm-mips/
Dio.h188 static inline int check_signature(unsigned long io_addr, in check_signature() argument
193 if (readb(io_addr) != *signature) in check_signature()
195 io_addr++; in check_signature()
217 static inline int isa_check_signature(unsigned long io_addr, in isa_check_signature() argument
222 if (isa_readb(io_addr) != *signature) in isa_check_signature()
224 io_addr++; in isa_check_signature()
/linux-2.4.37.9/include/asm-arm/
Dio.h207 check_signature(unsigned long io_addr, const unsigned char *signature, in check_signature() argument
212 if (readb(io_addr) != *signature) in check_signature()
214 io_addr++; in check_signature()
258 isa_check_signature(unsigned long io_addr, const unsigned char *signature, in isa_check_signature() argument
263 if (isa_readb(io_addr) != *signature) in isa_check_signature()
265 io_addr++; in isa_check_signature()
/linux-2.4.37.9/include/asm-sh64/
Dio.h151 static __inline__ int check_signature(unsigned long io_addr, in check_signature() argument
156 if (readb(io_addr) != *signature) in check_signature()
158 io_addr++; in check_signature()
/linux-2.4.37.9/include/asm-alpha/
Dio.h464 check_signature(unsigned long io_addr, const unsigned char *signature, in check_signature() argument
469 if (readb(io_addr) != *signature) in check_signature()
471 io_addr++; in check_signature()
496 isa_check_signature(unsigned long io_addr, const unsigned char *signature, in isa_check_signature() argument
501 if (isa_readb(io_addr) != *signature) in isa_check_signature()
503 io_addr++; in isa_check_signature()
/linux-2.4.37.9/include/asm-ppc/
Dio.h382 static inline int check_signature(unsigned long io_addr, in check_signature() argument
387 if (readb(io_addr) != *signature) in check_signature()
389 io_addr++; in check_signature()
399 static inline int isa_check_signature(unsigned long io_addr, in isa_check_signature() argument
/linux-2.4.37.9/include/asm-ppc64/
Dio.h264 static inline int check_signature(unsigned long io_addr, in check_signature() argument
270 if (readb(io_addr) != *signature) in check_signature()
272 io_addr++; in check_signature()
/linux-2.4.37.9/include/asm-sh/
Dio.h444 static __inline__ int check_signature(unsigned long io_addr, in check_signature() argument
449 if (readb(io_addr) != *signature) in check_signature()
451 io_addr++; in check_signature()

12