• Home
  • Raw
  • Download

Lines Matching refs:slot

90 	enum vrc4171_slot slot;  member
158 static inline uint8_t exca_read_byte(int slot, uint8_t index) in exca_read_byte() argument
160 if (slot == CARD_SLOTB) in exca_read_byte()
167 static inline uint16_t exca_read_word(int slot, uint8_t index) in exca_read_word() argument
171 if (slot == CARD_SLOTB) in exca_read_word()
183 static inline uint8_t exca_write_byte(int slot, uint8_t index, uint8_t data) in exca_write_byte() argument
185 if (slot == CARD_SLOTB) in exca_write_byte()
194 static inline uint16_t exca_write_word(int slot, uint8_t index, uint16_t data) in exca_write_word() argument
196 if (slot == CARD_SLOTB) in exca_write_word()
225 unsigned int slot; in pccard_init() local
232 slot = sock->sock; in pccard_init()
233 socket = &vrc4171_sockets[slot]; in pccard_init()
243 unsigned int slot; in pccard_get_status() local
250 slot = sock->sock; in pccard_get_status()
252 status = exca_read_byte(slot, I365_STATUS); in pccard_get_status()
253 if (exca_read_byte(slot, I365_INTCTL) & I365_PC_IOCARD) { in pccard_get_status()
271 sense = exca_read_byte(slot, CARD_VOLTAGE_SENSE); in pccard_get_status()
308 unsigned int slot; in pccard_set_socket() local
316 slot = sock->sock; in pccard_set_socket()
317 socket = &vrc4171_sockets[slot]; in pccard_set_socket()
322 exca_write_byte(slot, CARD_VOLTAGE_SELECT, voltage); in pccard_set_socket()
329 exca_write_byte(slot, I365_POWER, power); in pccard_set_socket()
340 exca_write_byte(slot, I365_INTCTL, control); in pccard_set_socket()
343 exca_write_byte(slot, I365_CSCINT, cscint); in pccard_set_socket()
344 exca_read_byte(slot, I365_CSC); /* clear CardStatus change */ in pccard_set_socket()
360 exca_write_byte(slot, I365_CSCINT, cscint); in pccard_set_socket()
369 unsigned int slot; in pccard_set_io_map() local
378 slot = sock->sock; in pccard_set_io_map()
381 addrwin = exca_read_byte(slot, I365_ADDRWIN); in pccard_set_io_map()
384 exca_write_byte(slot, I365_ADDRWIN, addrwin); in pccard_set_io_map()
387 exca_write_word(slot, I365_IO(map)+I365_W_START, io->start); in pccard_set_io_map()
388 exca_write_word(slot, I365_IO(map)+I365_W_STOP, io->stop); in pccard_set_io_map()
399 exca_write_byte(slot, I365_IOCTL, ioctl); in pccard_set_io_map()
403 exca_write_byte(slot, I365_ADDRWIN, addrwin); in pccard_set_io_map()
411 unsigned int slot; in pccard_set_mem_map() local
425 slot = sock->sock; in pccard_set_mem_map()
428 addrwin = exca_read_byte(slot, I365_ADDRWIN); in pccard_set_mem_map()
431 exca_write_byte(slot, I365_ADDRWIN, addrwin); in pccard_set_mem_map()
437 exca_write_word(slot, I365_MEM(map)+I365_W_START, start); in pccard_set_mem_map()
453 exca_write_word(slot, I365_MEM(map)+I365_W_STOP, stop); in pccard_set_mem_map()
460 exca_write_word(slot, I365_MEM(map)+I365_W_OFF, offset); in pccard_set_mem_map()
464 exca_write_byte(slot, I365_ADDRWIN, addrwin); in pccard_set_mem_map()
478 static inline unsigned int get_events(int slot) in get_events() argument
483 status = exca_read_byte(slot, I365_STATUS); in get_events()
484 csc = exca_read_byte(slot, I365_CSC); in get_events()
486 if (exca_read_byte(slot, I365_INTCTL) & I365_PC_IOCARD) { in get_events()
515 if (socket->slot == SLOT_INITIALIZED) { in pccard_interrupt()
528 if (socket->slot == SLOT_INITIALIZED) { in pccard_interrupt()
542 static inline void reserve_using_irq(int slot) in reserve_using_irq() argument
546 irq = exca_read_byte(slot, I365_INTCTL); in reserve_using_irq()
550 irq = exca_read_byte(slot, I365_CSCINT); in reserve_using_irq()
558 int slot, retval; in vrc4171_add_sockets() local
560 for (slot = 0; slot < CARD_MAX_SLOTS; slot++) { in vrc4171_add_sockets()
561 if (slot == CARD_SLOTB && vrc4171_slotb == SLOTB_IS_NONE) in vrc4171_add_sockets()
564 socket = &vrc4171_sockets[slot]; in vrc4171_add_sockets()
565 if (socket->slot != SLOT_PROBE) { in vrc4171_add_sockets()
568 switch (socket->slot) { in vrc4171_add_sockets()
570 addrwin = exca_read_byte(slot, I365_ADDRWIN); in vrc4171_add_sockets()
572 exca_write_byte(slot, I365_ADDRWIN, addrwin); in vrc4171_add_sockets()
575 addrwin = exca_read_byte(slot, I365_ADDRWIN); in vrc4171_add_sockets()
577 exca_write_byte(slot, I365_ADDRWIN, addrwin); in vrc4171_add_sockets()
583 reserve_using_irq(slot); in vrc4171_add_sockets()
587 sprintf(socket->name, "NEC VRC4171 Card Slot %1c", 'A' + slot); in vrc4171_add_sockets()
596 exca_write_byte(slot, I365_ADDRWIN, 0); in vrc4171_add_sockets()
597 exca_write_byte(slot, GLOBAL_CONTROL, 0); in vrc4171_add_sockets()
599 socket->slot = SLOT_INITIALIZED; in vrc4171_add_sockets()
608 int slot; in vrc4171_remove_sockets() local
610 for (slot = 0; slot < CARD_MAX_SLOTS; slot++) { in vrc4171_remove_sockets()
611 if (slot == CARD_SLOTB && vrc4171_slotb == SLOTB_IS_NONE) in vrc4171_remove_sockets()
614 socket = &vrc4171_sockets[slot]; in vrc4171_remove_sockets()
615 if (socket->slot == SLOT_INITIALIZED) in vrc4171_remove_sockets()
618 socket->slot = SLOT_PROBE; in vrc4171_remove_sockets()
643 vrc4171_sockets[CARD_SLOTA].slot = SLOT_NOPROBE_MEM; in vrc4171_card_setup()
646 vrc4171_sockets[CARD_SLOTA].slot = SLOT_NOPROBE_IO; in vrc4171_card_setup()
649 vrc4171_sockets[CARD_SLOTA].slot = SLOT_NOPROBE_ALL; in vrc4171_card_setup()
683 vrc4171_sockets[CARD_SLOTB].slot = SLOT_NOPROBE_MEM; in vrc4171_card_setup()
685 vrc4171_sockets[CARD_SLOTB].slot = SLOT_NOPROBE_IO; in vrc4171_card_setup()
687 vrc4171_sockets[CARD_SLOTB].slot = SLOT_NOPROBE_ALL; in vrc4171_card_setup()