Changeset 1433ecda in mainline for uspace/drv
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/drv
- Files:
-
- 53 edited
-
audio/hdaudio/codec.c (modified) (1 diff)
-
audio/hdaudio/hdactl.c (modified) (3 diffs)
-
audio/hdaudio/pcm_iface.c (modified) (1 diff)
-
audio/sb16/dsp_commands.h (modified) (1 diff)
-
audio/sb16/mixer_iface.c (modified) (2 diffs)
-
audio/sb16/pcm_iface.c (modified) (2 diffs)
-
audio/sb16/sb16.c (modified) (1 diff)
-
block/ahci/ahci.c (modified) (2 diffs)
-
block/ata_bd/ata_bd.c (modified) (6 diffs)
-
block/usbmast/bo_trans.c (modified) (2 diffs)
-
block/usbmast/main.c (modified) (1 diff)
-
block/usbmast/scsi_ms.c (modified) (3 diffs)
-
bus/adb/cuda_adb/main.c (modified) (2 diffs)
-
bus/isa/isa.c (modified) (2 diffs)
-
bus/usb/ehci/ehci_bus.c (modified) (1 diff)
-
bus/usb/ehci/endpoint_list.c (modified) (2 diffs)
-
bus/usb/ehci/hw_struct/transfer_descriptor.h (modified) (1 diff)
-
bus/usb/ohci/endpoint_list.c (modified) (1 diff)
-
bus/usb/ohci/hw_struct/hcca.h (modified) (1 diff)
-
bus/usb/ohci/ohci_bus.h (modified) (1 diff)
-
bus/usb/usbmid/usbmid.h (modified) (1 diff)
-
bus/usb/vhc/conndev.c (modified) (1 diff)
-
bus/usb/vhc/hub/virthub.h (modified) (1 diff)
-
bus/usb/vhc/main.c (modified) (3 diffs)
-
bus/usb/xhci/device.c (modified) (2 diffs)
-
bus/usb/xhci/hw_struct/common.h (modified) (3 diffs)
-
bus/usb/xhci/scratchpad.c (modified) (1 diff)
-
bus/usb/xhci/transfers.h (modified) (1 diff)
-
char/i8042/i8042.h (modified) (1 diff)
-
char/msim-con/main.c (modified) (2 diffs)
-
char/ski-con/main.c (modified) (2 diffs)
-
char/ski-con/ski-con.c (modified) (2 diffs)
-
char/sun4v-con/main.c (modified) (2 diffs)
-
hid/adb-kbd/adb-kbd.c (modified) (1 diff)
-
hid/adb-kbd/main.c (modified) (2 diffs)
-
hid/adb-mouse/main.c (modified) (2 diffs)
-
hid/atkbd/main.c (modified) (1 diff)
-
hid/usbhid/main.c (modified) (1 diff)
-
hid/usbhid/subdrivers.c (modified) (3 diffs)
-
hid/xtkbd/main.c (modified) (1 diff)
-
intctl/apic/apic.c (modified) (4 diffs)
-
intctl/apic/main.c (modified) (2 diffs)
-
intctl/i8259/main.c (modified) (2 diffs)
-
intctl/icp-ic/main.c (modified) (2 diffs)
-
intctl/obio/main.c (modified) (1 diff)
-
nic/ar9271/ar9271.h (modified) (3 diffs)
-
nic/rtl8139/defs.c (modified) (2 diffs)
-
nic/rtl8139/general.c (modified) (3 diffs)
-
nic/rtl8169/defs.h (modified) (1 diff)
-
platform/amdm37x/main.c (modified) (2 diffs)
-
platform/amdm37x/prm/clock_control.h (modified) (1 diff)
-
platform/mac/mac.c (modified) (1 diff)
-
root/virt/virt.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/codec.c
r47b2d7e3 r1433ecda 435 435 if ((pcaps & BIT_V(uint32_t, pwc_output)) != 0) { 436 436 ddf_msg(LVL_NOTE, "PIN %d will enable output", aw); 437 pctl = pctl | BIT_V(uint8_t, pctl_out_enable);437 pctl = pctl | BIT_V(uint8_t, pctl_out_enable); 438 438 } 439 439 440 440 if ((pcaps & BIT_V(uint32_t, pwc_input)) != 0) { 441 441 ddf_msg(LVL_NOTE, "PIN %d will enable input", aw); 442 pctl = pctl | BIT_V(uint8_t, pctl_in_enable);442 pctl = pctl | BIT_V(uint8_t, pctl_in_enable); 443 443 } 444 444 445 445 if ((pcaps & BIT_V(uint32_t, pwc_hpd)) != 0) { 446 446 ddf_msg(LVL_NOTE, "PIN %d will enable headphone drive", aw); 447 pctl = pctl | BIT_V(uint8_t, pctl_hpd_enable);447 pctl = pctl | BIT_V(uint8_t, pctl_hpd_enable); 448 448 } 449 449 -
uspace/drv/audio/hdaudio/hdactl.c
r47b2d7e3 r1433ecda 514 514 ddf_msg(LVL_NOTE, "reg 0x%zx STATESTS = 0x%x", 515 515 (void *)&hda->regs->statests - (void *)hda->regs, 516 hda_reg16_read(&hda->regs->statests));516 hda_reg16_read(&hda->regs->statests)); 517 517 /** 518 518 * Clear STATESTS bits so they don't generate an interrupt later … … 523 523 ddf_msg(LVL_NOTE, "after clearing reg 0x%zx STATESTS = 0x%x", 524 524 (void *)&hda->regs->statests - (void *)hda->regs, 525 hda_reg16_read(&hda->regs->statests));525 hda_reg16_read(&hda->regs->statests)); 526 526 527 527 gctl = hda_reg32_read(&hda->regs->gctl); … … 544 544 545 545 ddf_msg(LVL_NOTE, "Waiting for controller to initialize."); 546 async_usleep(100 *1000);546 async_usleep(100 * 1000); 547 547 --cnt; 548 548 } -
uspace/drv/audio/hdaudio/pcm_iface.c
r47b2d7e3 r1433ecda 356 356 357 357 if (hda->ev_sess == NULL) { 358 if (0) ddf_log_warning("No one listening for event %u", event); 358 if (0) 359 ddf_log_warning("No one listening for event %u", event); 359 360 return; 360 361 } -
uspace/drv/audio/sb16/dsp_commands.h
r47b2d7e3 r1433ecda 166 166 #define DSP_MODE_STEREO 0x20 167 167 168 static inline const char * mode_to_str(uint8_t mode)168 static inline const char *mode_to_str(uint8_t mode) 169 169 { 170 170 if (mode & 0xcf) 171 171 return "unknown"; 172 static const char * names[] = {172 static const char *names[] = { 173 173 "unsigned mono (8bit)", 174 174 "signed mono (16bit)", -
uspace/drv/audio/sb16/mixer_iface.c
r47b2d7e3 r1433ecda 46 46 } 47 47 48 static errno_t sb_get_info(ddf_fun_t *fun, const char **name, unsigned *items)48 static errno_t sb_get_info(ddf_fun_t *fun, const char **name, unsigned *items) 49 49 { 50 50 sb_mixer_t *mixer = fun_to_mixer(fun); … … 58 58 } 59 59 60 static errno_t sb_get_item_info(ddf_fun_t *fun, unsigned item, const char **name,60 static errno_t sb_get_item_info(ddf_fun_t *fun, unsigned item, const char **name, 61 61 unsigned *max_level) 62 62 { -
uspace/drv/audio/sb16/pcm_iface.c
r47b2d7e3 r1433ecda 47 47 } 48 48 49 static errno_t sb_get_info_str(ddf_fun_t *fun, const char **name)49 static errno_t sb_get_info_str(ddf_fun_t *fun, const char **name) 50 50 { 51 51 if (name) … … 79 79 } 80 80 81 static async_sess_t * sb_get_event_session(ddf_fun_t *fun)81 static async_sess_t *sb_get_event_session(ddf_fun_t *fun) 82 82 { 83 83 return sb_dsp_get_event_session(fun_to_dsp(fun)); -
uspace/drv/audio/sb16/sb16.c
r47b2d7e3 r1433ecda 60 60 unsigned major, unsigned minor) 61 61 { 62 switch (major) 63 { 64 case 1: return SB_MIXER_NONE; /* SB 1.5 and early 2.0 = no mixer chip */ 65 case 2: return (minor == 0) ? SB_MIXER_NONE : SB_MIXER_CT1335; 66 case 3: return SB_MIXER_CT1345; /* SB Pro */ 67 case 4: return SB_MIXER_CT1745; /* SB 16 */ 68 default: return SB_MIXER_UNKNOWN; 62 switch (major) { 63 case 1: 64 return SB_MIXER_NONE; /* SB 1.5 and early 2.0 = no mixer chip */ 65 case 2: 66 return (minor == 0) ? SB_MIXER_NONE : SB_MIXER_CT1335; 67 case 3: 68 return SB_MIXER_CT1345; /* SB Pro */ 69 case 4: 70 return SB_MIXER_CT1745; /* SB 16 */ 71 default: 72 return SB_MIXER_UNKNOWN; 69 73 } 70 74 } -
uspace/drv/block/ahci/ahci.c
r47b2d7e3 r1433ecda 978 978 sata->cmd_header->cmdtableu = HI(phys); 979 979 sata->cmd_header->cmdtable = LO(phys); 980 sata->cmd_table = (uint32_t *) virt_table;980 sata->cmd_table = (uint32_t *) virt_table; 981 981 982 982 return sata; … … 1076 1076 fibril_mutex_unlock(&sata_devices_count_lock); 1077 1077 1078 rc = ddf_fun_set_name(sata->fun, sata_dev_name);1078 rc = ddf_fun_set_name(sata->fun, sata_dev_name); 1079 1079 if (rc != EOK) { 1080 1080 ddf_msg(LVL_ERROR, "Failed setting function name."); -
uspace/drv/block/ata_bd/ata_bd.c
r47b2d7e3 r1433ecda 428 428 429 429 d->blocks = 430 (uint32_t) idata.total_lba28_0 |430 (uint32_t) idata.total_lba28_0 | 431 431 ((uint32_t) idata.total_lba28_1 << 16); 432 432 } else { … … 439 439 440 440 d->blocks = 441 (uint64_t) idata.total_lba48_0 |441 (uint64_t) idata.total_lba48_0 | 442 442 ((uint64_t) idata.total_lba48_1 << 16) | 443 443 ((uint64_t) idata.total_lba48_2 << 32) | … … 461 461 for (i = 0; i < len; ++i) { 462 462 c = model[i]; 463 if (c >= 0x80) c = '?'; 463 if (c >= 0x80) 464 c = '?'; 464 465 465 466 chr_encode(c, d->model, &pos, 40); … … 795 796 pio_write_8(&ctrl->cmd->drive_head, drv_head); 796 797 797 if (wait_status(ctrl, 0, ~(SR_BSY |SR_DRQ), NULL, TIMEOUT_BSY) != EOK) {798 if (wait_status(ctrl, 0, ~(SR_BSY | SR_DRQ), NULL, TIMEOUT_BSY) != EOK) { 798 799 fibril_mutex_unlock(&ctrl->lock); 799 800 return EIO; … … 1263 1264 while ((status & ~n_reset) != 0 || (status & set) != set) { 1264 1265 --cnt; 1265 if (cnt <= 0) break; 1266 if (cnt <= 0) 1267 break; 1266 1268 1267 1269 status = pio_read_8(&ctrl->cmd->status); … … 1272 1274 async_usleep(10000); 1273 1275 --cnt; 1274 if (cnt <= 0) break; 1276 if (cnt <= 0) 1277 break; 1275 1278 1276 1279 status = pio_read_8(&ctrl->cmd->status); -
uspace/drv/block/usbmast/bo_trans.c
r47b2d7e3 r1433ecda 116 116 usb_pipe_clear_halt( 117 117 usb_device_get_default_pipe(mfun->mdev->usb_dev), dpipe); 118 } else if (rc != EOK) {118 } else if (rc != EOK) { 119 119 usb_log_error("Failed to transfer data: %s", str_error(rc)); 120 120 return EIO; … … 141 141 if (csw.dCSWTag != tag) { 142 142 usb_log_error("Received CSW with incorrect tag. (expected: %" 143 PRIX32 " received: %"PRIx32, tag, csw.dCSWTag);143 PRIX32 " received: %" PRIx32, tag, csw.dCSWTag); 144 144 return EIO; 145 145 } -
uspace/drv/block/usbmast/main.c
r47b2d7e3 r1433ecda 179 179 usb_log_debug("Get LUN count..."); 180 180 mdev->lun_count = usb_masstor_get_lun_count(mdev); 181 mdev->luns = calloc(mdev->lun_count, sizeof(ddf_fun_t *));181 mdev->luns = calloc(mdev->lun_count, sizeof(ddf_fun_t *)); 182 182 if (mdev->luns == NULL) { 183 183 usb_log_error("Failed allocating luns table."); -
uspace/drv/block/usbmast/scsi_ms.c
r47b2d7e3 r1433ecda 196 196 if (cmd.rcvd_size < SCSI_STD_INQUIRY_DATA_MIN_SIZE) { 197 197 usb_log_error("SCSI Inquiry response too short (%zu).", 198 cmd.rcvd_size);198 cmd.rcvd_size); 199 199 return EIO; 200 200 } … … 306 306 if (cmd.rcvd_size < sizeof(data)) { 307 307 usb_log_error("SCSI Read Capacity response too short (%zu).", 308 cmd.rcvd_size);308 cmd.rcvd_size); 309 309 return EIO; 310 310 } … … 349 349 rc = usbmast_run_cmd(mfun, &cmd); 350 350 351 if (rc != EOK) {351 if (rc != EOK) { 352 352 usb_log_error("Read (10) transport failed, device %s: %s.", 353 353 usb_device_get_name(mfun->mdev->usb_dev), str_error(rc)); -
uspace/drv/bus/adb/cuda_adb/main.c
r47b2d7e3 r1433ecda 103 103 errno_t rc; 104 104 105 ddf_msg(LVL_DEBUG, "cuda_dev_add(%p)", dev);105 ddf_msg(LVL_DEBUG, "cuda_dev_add(%p)", dev); 106 106 cuda = ddf_dev_data_alloc(dev, sizeof(cuda_t)); 107 107 if (cuda == NULL) { … … 124 124 static errno_t cuda_dev_remove(ddf_dev_t *dev) 125 125 { 126 cuda_t *cuda = (cuda_t *)ddf_dev_data_get(dev);126 cuda_t *cuda = (cuda_t *)ddf_dev_data_get(dev); 127 127 128 ddf_msg(LVL_DEBUG, "cuda_dev_remove(%p)", dev);128 ddf_msg(LVL_DEBUG, "cuda_dev_remove(%p)", dev); 129 129 130 return cuda_remove(cuda);130 return cuda_remove(cuda); 131 131 } 132 132 133 133 static errno_t cuda_dev_gone(ddf_dev_t *dev) 134 134 { 135 cuda_t *cuda = (cuda_t *)ddf_dev_data_get(dev);135 cuda_t *cuda = (cuda_t *)ddf_dev_data_get(dev); 136 136 137 ddf_msg(LVL_DEBUG, "cuda_dev_gone(%p)", dev);137 ddf_msg(LVL_DEBUG, "cuda_dev_gone(%p)", dev); 138 138 139 return cuda_gone(cuda);139 return cuda_gone(cuda); 140 140 } 141 141 142 142 static errno_t cuda_fun_online(ddf_fun_t *fun) 143 143 { 144 ddf_msg(LVL_DEBUG, "cuda_fun_online()");145 return ddf_fun_online(fun);144 ddf_msg(LVL_DEBUG, "cuda_fun_online()"); 145 return ddf_fun_online(fun); 146 146 } 147 147 148 148 static errno_t cuda_fun_offline(ddf_fun_t *fun) 149 149 { 150 ddf_msg(LVL_DEBUG, "cuda_fun_offline()");151 return ddf_fun_offline(fun);150 ddf_msg(LVL_DEBUG, "cuda_fun_offline()"); 151 return ddf_fun_offline(fun); 152 152 } 153 153 -
uspace/drv/bus/isa/isa.c
r47b2d7e3 r1433ecda 227 227 }; 228 228 229 static ddf_dev_ops_t isa_fun_ops = {229 static ddf_dev_ops_t isa_fun_ops = { 230 230 .interfaces[HW_RES_DEV_IFACE] = &isa_fun_hw_res_ops, 231 231 .interfaces[PIO_WINDOW_DEV_IFACE] = &isa_fun_pio_window_ops, … … 307 307 } 308 308 309 rc = vfs_read(fd, (aoff64_t []) { 0}, buf, len, &nread);309 rc = vfs_read(fd, (aoff64_t []) { 0 }, buf, len, &nread); 310 310 if (rc != EOK) { 311 311 ddf_msg(LVL_ERROR, "Unable to read file '%s'.", conf_path); -
uspace/drv/bus/usb/ehci/ehci_bus.c
r47b2d7e3 r1433ecda 145 145 endpoint_set_offline_locked(ep); 146 146 list_remove(&ehci_ep->pending_link); 147 usb_transfer_batch_t * const batch = ep->active_batch;147 usb_transfer_batch_t *const batch = ep->active_batch; 148 148 endpoint_deactivate_locked(ep); 149 149 fibril_mutex_unlock(&hc->guard); -
uspace/drv/bus/usb/ehci/endpoint_list.c
r47b2d7e3 r1433ecda 66 66 fibril_mutex_initialize(&instance->guard); 67 67 68 usb_log_debug2("EPL(%p-%s): Transfer list setup with ED: %p(%" PRIxn").",68 usb_log_debug2("EPL(%p-%s): Transfer list setup with ED: %p(%" PRIxn ").", 69 69 instance, name, instance->list_head, 70 70 addr_to_phys(instance->list_head)); … … 133 133 instance, instance->name, ep, first, first->qh); 134 134 if (last_qh == instance->list_head) { 135 usb_log_debug2("EPL(%p-%s): head EP(%p-%" PRIxn"): %x:%x.",135 usb_log_debug2("EPL(%p-%s): head EP(%p-%" PRIxn "): %x:%x.", 136 136 instance, instance->name, last_qh, 137 137 addr_to_phys(instance->list_head), -
uspace/drv/bus/usb/ehci/hw_struct/transfer_descriptor.h
r47b2d7e3 r1433ecda 77 77 volatile uint32_t extended_bp[5]; 78 78 79 } __attribute__((packed, aligned(32))) td_t;79 } __attribute__((packed, aligned(32))) td_t; 80 80 81 81 static_assert(sizeof(td_t) % 32 == 0); -
uspace/drv/bus/usb/ohci/endpoint_list.c
r47b2d7e3 r1433ecda 128 128 list_first(&instance->endpoint_list), ohci_endpoint_t, eplist_link); 129 129 usb_log_debug("HCD EP(%p) added to list %s, first is %p(%p).", 130 ep, instance->name, first, first->ed);130 ep, instance->name, first, first->ed); 131 131 if (last_ed == instance->list_head) { 132 132 usb_log_debug2("%s head ED(%p-0x%0" PRIx32 "): %x:%x:%x:%x.", -
uspace/drv/bus/usb/ohci/hw_struct/hcca.h
r47b2d7e3 r1433ecda 69 69 * @return Usable HCCA memory structure. 70 70 */ 71 static inline hcca_t * hcca_get(void)71 static inline hcca_t *hcca_get(void) 72 72 { 73 73 hcca_t *hcca = memalign(sizeof(hcca_t), sizeof(hcca_t)); -
uspace/drv/bus/usb/ohci/ohci_bus.h
r47b2d7e3 r1433ecda 84 84 * @return Pointer to assigned hcd endpoint structure 85 85 */ 86 static inline ohci_endpoint_t * ohci_endpoint_get(const endpoint_t *ep)86 static inline ohci_endpoint_t *ohci_endpoint_get(const endpoint_t *ep) 87 87 { 88 88 assert(ep); -
uspace/drv/bus/usb/usbmid/usbmid.h
r47b2d7e3 r1433ecda 69 69 extern errno_t usbmid_interface_destroy(usbmid_interface_t *mid_iface); 70 70 71 static inline usbmid_interface_t * usbmid_interface_from_link(link_t *item)71 static inline usbmid_interface_t *usbmid_interface_from_link(link_t *item) 72 72 { 73 73 return list_get_instance(item, usbmid_interface_t, link); -
uspace/drv/bus/usb/vhc/conndev.c
r47b2d7e3 r1433ecda 66 66 ipc_call_t data_request_call; 67 67 aid_t data_request = async_data_read(exch, plugged_device_name, 68 PLUGGED_DEVICE_NAME_MAXLEN, &data_request_call);68 PLUGGED_DEVICE_NAME_MAXLEN, &data_request_call); 69 69 70 70 async_exchange_end(exch); -
uspace/drv/bus/usb/vhc/hub/virthub.h
r47b2d7e3 r1433ecda 70 70 uint8_t max_current; 71 71 /** Whether device at given port is removable. */ 72 uint8_t removable_device[BITS2BYTES(HUB_PORT_COUNT +1)];72 uint8_t removable_device[BITS2BYTES(HUB_PORT_COUNT + 1)]; 73 73 /** Port power control. 74 74 * This is USB1.0 compatibility field, all bits must be 1. 75 75 */ 76 uint8_t port_power[BITS2BYTES(HUB_PORT_COUNT +1)];77 } __attribute__ ((packed)) hub_descriptor_t;76 uint8_t port_power[BITS2BYTES(HUB_PORT_COUNT + 1)]; 77 } __attribute__((packed)) hub_descriptor_t; 78 78 79 79 extern usbvirt_device_ops_t hub_ops; -
uspace/drv/bus/usb/vhc/main.c
r47b2d7e3 r1433ecda 80 80 if (ret != EOK) { 81 81 usb_log_error("Failed to init HCD structures: %s.", 82 str_error(ret));82 str_error(ret)); 83 83 return ret; 84 84 } … … 111 111 if (ret != EOK) { 112 112 usb_log_error("Failed to init VHC root hub: %s", 113 str_error(ret));113 str_error(ret)); 114 114 // TODO do something here... 115 115 } … … 127 127 }; 128 128 129 int main(int argc, char * argv[])129 int main(int argc, char *argv[]) 130 130 { 131 131 log_init(NAME); -
uspace/drv/bus/usb/xhci/device.c
r47b2d7e3 r1433ecda 159 159 if (dev->base.speed == USB_SPEED_HIGH) { 160 160 dev->tt_think_time = 8 + 161 8 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_8) +162 16 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_16);161 8 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_8) + 162 16 * !!(hub_desc.characteristics & HUB_CHAR_TT_THINK_16); 163 163 } 164 164 … … 222 222 if ((err = hc_get_device_desc(dev, &desc))) { 223 223 usb_log_error("Device(%d): failed to get device " 224 "descriptor: %s", dev->address, str_error(err));224 "descriptor: %s", dev->address, str_error(err)); 225 225 goto err_address; 226 226 } -
uspace/drv/bus/usb/xhci/hw_struct/common.h
r47b2d7e3 r1433ecda 70 70 */ 71 71 static inline void xhci_dword_set_bits(xhci_dword_t *storage, uint32_t value, 72 unsigned hi, unsigned lo)72 unsigned hi, unsigned lo) 73 73 { 74 74 const uint32_t mask = host2xhci(32, BIT_RANGE(uint32_t, hi, lo)); … … 86 86 87 87 static inline void xhci_qword_set_bits(xhci_qword_t *storage, uint64_t value, 88 unsigned hi, unsigned lo)88 unsigned hi, unsigned lo) 89 89 { 90 90 const uint64_t mask = host2xhci(64, BIT_RANGE(uint64_t, hi, lo)); … … 94 94 95 95 static inline int xhci_reg_wait(xhci_dword_t *reg, uint32_t mask, 96 uint32_t expected)96 uint32_t expected) 97 97 { 98 98 mask = host2xhci(32, mask); -
uspace/drv/bus/usb/xhci/scratchpad.c
r47b2d7e3 r1433ecda 77 77 for (unsigned i = 0; i < num_bufs; ++i) { 78 78 array[i] = host2xhci(64, dma_buffer_phys(&hc->scratchpad_array, 79 base + i * PAGE_SIZE));79 base + i * PAGE_SIZE)); 80 80 } 81 81 -
uspace/drv/bus/usb/xhci/transfers.h
r47b2d7e3 r1433ecda 53 53 } xhci_transfer_t; 54 54 55 extern usb_transfer_batch_t *xhci_transfer_create(endpoint_t *);55 extern usb_transfer_batch_t *xhci_transfer_create(endpoint_t *); 56 56 extern errno_t xhci_transfer_schedule(usb_transfer_batch_t *); 57 57 -
uspace/drv/char/i8042/i8042.h
r47b2d7e3 r1433ecda 56 56 uint8_t pad[3]; 57 57 ioport8_t status; 58 } __attribute__ ((packed)) i8042_regs_t;58 } __attribute__((packed)) i8042_regs_t; 59 59 60 60 /** i8042 Port. */ -
uspace/drv/char/msim-con/main.c
r47b2d7e3 r1433ecda 103 103 errno_t rc; 104 104 105 ddf_msg(LVL_DEBUG, "msim_con_dev_add(%p)", dev);105 ddf_msg(LVL_DEBUG, "msim_con_dev_add(%p)", dev); 106 106 107 107 msim_con = ddf_dev_data_alloc(dev, sizeof(msim_con_t)); … … 124 124 static errno_t msim_con_dev_remove(ddf_dev_t *dev) 125 125 { 126 msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev);126 msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev); 127 127 128 ddf_msg(LVL_DEBUG, "msim_con_dev_remove(%p)", dev);128 ddf_msg(LVL_DEBUG, "msim_con_dev_remove(%p)", dev); 129 129 130 return msim_con_remove(msim_con);130 return msim_con_remove(msim_con); 131 131 } 132 132 133 133 static errno_t msim_con_dev_gone(ddf_dev_t *dev) 134 134 { 135 msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev);135 msim_con_t *msim_con = (msim_con_t *)ddf_dev_data_get(dev); 136 136 137 ddf_msg(LVL_DEBUG, "msim_con_dev_gone(%p)", dev);137 ddf_msg(LVL_DEBUG, "msim_con_dev_gone(%p)", dev); 138 138 139 return msim_con_gone(msim_con);139 return msim_con_gone(msim_con); 140 140 } 141 141 142 142 static errno_t msim_con_fun_online(ddf_fun_t *fun) 143 143 { 144 ddf_msg(LVL_DEBUG, "msim_con_fun_online()");145 return ddf_fun_online(fun);144 ddf_msg(LVL_DEBUG, "msim_con_fun_online()"); 145 return ddf_fun_online(fun); 146 146 } 147 147 148 148 static errno_t msim_con_fun_offline(ddf_fun_t *fun) 149 149 { 150 ddf_msg(LVL_DEBUG, "msim_con_fun_offline()");151 return ddf_fun_offline(fun);150 ddf_msg(LVL_DEBUG, "msim_con_fun_offline()"); 151 return ddf_fun_offline(fun); 152 152 } 153 153 -
uspace/drv/char/ski-con/main.c
r47b2d7e3 r1433ecda 65 65 ski_con_t *ski_con; 66 66 67 ddf_msg(LVL_DEBUG, "ski_con_dev_add(%p)", dev);67 ddf_msg(LVL_DEBUG, "ski_con_dev_add(%p)", dev); 68 68 ski_con = ddf_dev_data_alloc(dev, sizeof(ski_con_t)); 69 69 if (ski_con == NULL) { … … 79 79 static errno_t ski_con_dev_remove(ddf_dev_t *dev) 80 80 { 81 ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev);81 ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev); 82 82 83 ddf_msg(LVL_DEBUG, "ski_con_dev_remove(%p)", dev);83 ddf_msg(LVL_DEBUG, "ski_con_dev_remove(%p)", dev); 84 84 85 return ski_con_remove(ski_con);85 return ski_con_remove(ski_con); 86 86 } 87 87 88 88 static errno_t ski_con_dev_gone(ddf_dev_t *dev) 89 89 { 90 ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev);90 ski_con_t *ski_con = (ski_con_t *)ddf_dev_data_get(dev); 91 91 92 ddf_msg(LVL_DEBUG, "ski_con_dev_gone(%p)", dev);92 ddf_msg(LVL_DEBUG, "ski_con_dev_gone(%p)", dev); 93 93 94 return ski_con_gone(ski_con);94 return ski_con_gone(ski_con); 95 95 } 96 96 97 97 static errno_t ski_con_fun_online(ddf_fun_t *fun) 98 98 { 99 ddf_msg(LVL_DEBUG, "ski_con_fun_online()");100 return ddf_fun_online(fun);99 ddf_msg(LVL_DEBUG, "ski_con_fun_online()"); 100 return ddf_fun_online(fun); 101 101 } 102 102 103 103 static errno_t ski_con_fun_offline(ddf_fun_t *fun) 104 104 { 105 ddf_msg(LVL_DEBUG, "ski_con_fun_offline()");106 return ddf_fun_offline(fun);105 ddf_msg(LVL_DEBUG, "ski_con_fun_offline()"); 106 return ddf_fun_offline(fun); 107 107 } 108 108 -
uspace/drv/char/ski-con/ski-con.c
r47b2d7e3 r1433ecda 169 169 #ifdef UARCH_ia64 170 170 asm volatile ( 171 "mov r15 = %1\n"172 "break 0x80000;;\n" /* modifies r8 */173 "mov %0 = r8;;\n"174 175 : "=r" (ch)176 : "i" (SKI_GETCHAR)177 : "r15", "r8"171 "mov r15 = %1\n" 172 "break 0x80000;;\n" /* modifies r8 */ 173 "mov %0 = r8;;\n" 174 175 : "=r" (ch) 176 : "i" (SKI_GETCHAR) 177 : "r15", "r8" 178 178 ); 179 179 #else … … 199 199 #ifdef UARCH_ia64 200 200 asm volatile ( 201 "mov r15 = %0\n"202 "mov r32 = %1\n" /* r32 is in0 */203 "break 0x80000\n" /* modifies r8 */204 :205 : "i" (SKI_PUTCHAR), "r" (ch)206 : "r15", "in0", "r8"201 "mov r15 = %0\n" 202 "mov r32 = %1\n" /* r32 is in0 */ 203 "break 0x80000\n" /* modifies r8 */ 204 : 205 : "i" (SKI_PUTCHAR), "r" (ch) 206 : "r15", "in0", "r8" 207 207 ); 208 208 #else -
uspace/drv/char/sun4v-con/main.c
r47b2d7e3 r1433ecda 94 94 errno_t rc; 95 95 96 ddf_msg(LVL_DEBUG, "sun4v_con_dev_add(%p)", dev);96 ddf_msg(LVL_DEBUG, "sun4v_con_dev_add(%p)", dev); 97 97 sun4v_con = ddf_dev_data_alloc(dev, sizeof(sun4v_con_t)); 98 98 if (sun4v_con == NULL) { … … 114 114 static errno_t sun4v_con_dev_remove(ddf_dev_t *dev) 115 115 { 116 sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);116 sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev); 117 117 118 ddf_msg(LVL_DEBUG, "sun4v_con_dev_remove(%p)", dev);118 ddf_msg(LVL_DEBUG, "sun4v_con_dev_remove(%p)", dev); 119 119 120 return sun4v_con_remove(sun4v_con);120 return sun4v_con_remove(sun4v_con); 121 121 } 122 122 123 123 static errno_t sun4v_con_dev_gone(ddf_dev_t *dev) 124 124 { 125 sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev);125 sun4v_con_t *sun4v_con = (sun4v_con_t *)ddf_dev_data_get(dev); 126 126 127 ddf_msg(LVL_DEBUG, "sun4v_con_dev_gone(%p)", dev);127 ddf_msg(LVL_DEBUG, "sun4v_con_dev_gone(%p)", dev); 128 128 129 return sun4v_con_gone(sun4v_con);129 return sun4v_con_gone(sun4v_con); 130 130 } 131 131 132 132 static errno_t sun4v_con_fun_online(ddf_fun_t *fun) 133 133 { 134 ddf_msg(LVL_DEBUG, "sun4v_con_fun_online()");135 return ddf_fun_online(fun);134 ddf_msg(LVL_DEBUG, "sun4v_con_fun_online()"); 135 return ddf_fun_online(fun); 136 136 } 137 137 138 138 static errno_t sun4v_con_fun_offline(ddf_fun_t *fun) 139 139 { 140 ddf_msg(LVL_DEBUG, "sun4v_con_fun_offline()");141 return ddf_fun_offline(fun);140 ddf_msg(LVL_DEBUG, "sun4v_con_fun_offline()"); 141 return ddf_fun_offline(fun); 142 142 } 143 143 -
uspace/drv/hid/adb-kbd/adb-kbd.c
r47b2d7e3 r1433ecda 186 186 if (b1 != 0xff) 187 187 adb_kbd_data(kbd, b1); 188 (void)b0; (void)b1; 188 (void)b0; 189 (void)b1; 189 190 } 190 191 -
uspace/drv/hid/adb-kbd/main.c
r47b2d7e3 r1433ecda 65 65 adb_kbd_t *adb_kbd; 66 66 67 ddf_msg(LVL_DEBUG, "adb_kbd_dev_add(%p)", dev);67 ddf_msg(LVL_DEBUG, "adb_kbd_dev_add(%p)", dev); 68 68 adb_kbd = ddf_dev_data_alloc(dev, sizeof(adb_kbd_t)); 69 69 if (adb_kbd == NULL) { … … 79 79 static errno_t adb_kbd_dev_remove(ddf_dev_t *dev) 80 80 { 81 adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev);81 adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev); 82 82 83 ddf_msg(LVL_DEBUG, "adb_kbd_dev_remove(%p)", dev);83 ddf_msg(LVL_DEBUG, "adb_kbd_dev_remove(%p)", dev); 84 84 85 return adb_kbd_remove(adb_kbd);85 return adb_kbd_remove(adb_kbd); 86 86 } 87 87 88 88 static errno_t adb_kbd_dev_gone(ddf_dev_t *dev) 89 89 { 90 adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev);90 adb_kbd_t *adb_kbd = (adb_kbd_t *)ddf_dev_data_get(dev); 91 91 92 ddf_msg(LVL_DEBUG, "adb_kbd_dev_gone(%p)", dev);92 ddf_msg(LVL_DEBUG, "adb_kbd_dev_gone(%p)", dev); 93 93 94 return adb_kbd_gone(adb_kbd);94 return adb_kbd_gone(adb_kbd); 95 95 } 96 96 97 97 static errno_t adb_kbd_fun_online(ddf_fun_t *fun) 98 98 { 99 ddf_msg(LVL_DEBUG, "adb_kbd_fun_online()");100 return ddf_fun_online(fun);99 ddf_msg(LVL_DEBUG, "adb_kbd_fun_online()"); 100 return ddf_fun_online(fun); 101 101 } 102 102 103 103 static errno_t adb_kbd_fun_offline(ddf_fun_t *fun) 104 104 { 105 ddf_msg(LVL_DEBUG, "adb_kbd_fun_offline()");106 return ddf_fun_offline(fun);105 ddf_msg(LVL_DEBUG, "adb_kbd_fun_offline()"); 106 return ddf_fun_offline(fun); 107 107 } 108 108 -
uspace/drv/hid/adb-mouse/main.c
r47b2d7e3 r1433ecda 65 65 adb_mouse_t *adb_mouse; 66 66 67 ddf_msg(LVL_DEBUG, "adb_mouse_dev_add(%p)", dev);67 ddf_msg(LVL_DEBUG, "adb_mouse_dev_add(%p)", dev); 68 68 adb_mouse = ddf_dev_data_alloc(dev, sizeof(adb_mouse_t)); 69 69 if (adb_mouse == NULL) { … … 79 79 static errno_t adb_mouse_dev_remove(ddf_dev_t *dev) 80 80 { 81 adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev);81 adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev); 82 82 83 ddf_msg(LVL_DEBUG, "adb_mouse_dev_remove(%p)", dev);83 ddf_msg(LVL_DEBUG, "adb_mouse_dev_remove(%p)", dev); 84 84 85 return adb_mouse_remove(adb_mouse);85 return adb_mouse_remove(adb_mouse); 86 86 } 87 87 88 88 static errno_t adb_mouse_dev_gone(ddf_dev_t *dev) 89 89 { 90 adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev);90 adb_mouse_t *adb_mouse = (adb_mouse_t *)ddf_dev_data_get(dev); 91 91 92 ddf_msg(LVL_DEBUG, "adb_mouse_dev_gone(%p)", dev);92 ddf_msg(LVL_DEBUG, "adb_mouse_dev_gone(%p)", dev); 93 93 94 return adb_mouse_gone(adb_mouse);94 return adb_mouse_gone(adb_mouse); 95 95 } 96 96 97 97 static errno_t adb_mouse_fun_online(ddf_fun_t *fun) 98 98 { 99 ddf_msg(LVL_DEBUG, "adb_mouse_fun_online()");100 return ddf_fun_online(fun);99 ddf_msg(LVL_DEBUG, "adb_mouse_fun_online()"); 100 return ddf_fun_online(fun); 101 101 } 102 102 103 103 static errno_t adb_mouse_fun_offline(ddf_fun_t *fun) 104 104 { 105 ddf_msg(LVL_DEBUG, "adb_mouse_fun_offline()");106 return ddf_fun_offline(fun);105 ddf_msg(LVL_DEBUG, "adb_mouse_fun_offline()"); 106 return ddf_fun_offline(fun); 107 107 } 108 108 -
uspace/drv/hid/atkbd/main.c
r47b2d7e3 r1433ecda 100 100 ddf_msg(LVL_ERROR, "Failed to initialize AT_KBD driver: %s.", 101 101 str_error(rc)); 102 return rc;102 return rc; 103 103 } 104 104 -
uspace/drv/hid/usbhid/main.c
r47b2d7e3 r1433ecda 162 162 /** The driver itself. */ 163 163 static const usb_driver_t usb_hid_driver = { 164 .name = NAME,165 .ops = &usb_hid_driver_ops,166 .endpoints = usb_hid_endpoints164 .name = NAME, 165 .ops = &usb_hid_driver_ops, 166 .endpoints = usb_hid_endpoints 167 167 }; 168 168 -
uspace/drv/hid/usbhid/subdrivers.c
r47b2d7e3 r1433ecda 48 48 USB_HIDUT_USAGE_GENERIC_DESKTOP_KEYBOARD 49 49 }, 50 { 0, 0}50 { 0, 0 } 51 51 }; 52 52 … … 56 56 USB_HIDUT_USAGE_GENERIC_DESKTOP_MOUSE 57 57 }, 58 { 0, 0}58 { 0, 0 } 59 59 }; 60 60 … … 64 64 USB_HIDUT_USAGE_CONSUMER_CONSUMER_CONTROL 65 65 }, 66 { 0, 0}66 { 0, 0 } 67 67 }; 68 68 -
uspace/drv/hid/xtkbd/main.c
r47b2d7e3 r1433ecda 100 100 ddf_msg(LVL_ERROR, "Failed to initialize XT_KBD driver: %s.", 101 101 str_error(rc)); 102 return rc;102 return rc; 103 103 } 104 104 -
uspace/drv/intctl/apic/apic.c
r47b2d7e3 r1433ecda 66 66 uint8_t reg_addr; /**< APIC Register Address. */ 67 67 unsigned int : 24; /**< Reserved. */ 68 } __attribute__ ((packed));68 } __attribute__((packed)); 69 69 } io_regsel_t; 70 70 … … 83 83 unsigned int masked : 1; /**< Interrupt Mask. */ 84 84 unsigned int : 15; /**< Reserved. */ 85 } __attribute__ ((packed));85 } __attribute__((packed)); 86 86 }; 87 87 union { … … 90 90 unsigned int : 24; /**< Reserved. */ 91 91 uint8_t dest : 8; /**< Destination Field. */ 92 } __attribute__ ((packed));92 } __attribute__((packed)); 93 93 }; 94 } __attribute__ ((packed)) io_redirection_reg_t;94 } __attribute__((packed)) io_redirection_reg_t; 95 95 96 96 #define IO_APIC_SIZE 20 … … 148 148 149 149 int pin = irq_to_pin(irq); 150 if (pin == -1)150 if (pin == -1) 151 151 return ENOENT; 152 152 -
uspace/drv/intctl/apic/main.c
r47b2d7e3 r1433ecda 96 96 errno_t rc; 97 97 98 ddf_msg(LVL_DEBUG, "apic_dev_add(%p)", dev);98 ddf_msg(LVL_DEBUG, "apic_dev_add(%p)", dev); 99 99 apic = ddf_dev_data_alloc(dev, sizeof(apic_t)); 100 100 if (apic == NULL) { … … 116 116 static errno_t apic_dev_remove(ddf_dev_t *dev) 117 117 { 118 apic_t *apic = (apic_t *)ddf_dev_data_get(dev);118 apic_t *apic = (apic_t *)ddf_dev_data_get(dev); 119 119 120 ddf_msg(LVL_DEBUG, "apic_dev_remove(%p)", dev);120 ddf_msg(LVL_DEBUG, "apic_dev_remove(%p)", dev); 121 121 122 return apic_remove(apic);122 return apic_remove(apic); 123 123 } 124 124 125 125 static errno_t apic_dev_gone(ddf_dev_t *dev) 126 126 { 127 apic_t *apic = (apic_t *)ddf_dev_data_get(dev);127 apic_t *apic = (apic_t *)ddf_dev_data_get(dev); 128 128 129 ddf_msg(LVL_DEBUG, "apic_dev_gone(%p)", dev);129 ddf_msg(LVL_DEBUG, "apic_dev_gone(%p)", dev); 130 130 131 return apic_gone(apic);131 return apic_gone(apic); 132 132 } 133 133 134 134 static errno_t apic_fun_online(ddf_fun_t *fun) 135 135 { 136 ddf_msg(LVL_DEBUG, "apic_fun_online()");137 return ddf_fun_online(fun);136 ddf_msg(LVL_DEBUG, "apic_fun_online()"); 137 return ddf_fun_online(fun); 138 138 } 139 139 140 140 static errno_t apic_fun_offline(ddf_fun_t *fun) 141 141 { 142 ddf_msg(LVL_DEBUG, "apic_fun_offline()");143 return ddf_fun_offline(fun);142 ddf_msg(LVL_DEBUG, "apic_fun_offline()"); 143 return ddf_fun_offline(fun); 144 144 } 145 145 -
uspace/drv/intctl/i8259/main.c
r47b2d7e3 r1433ecda 97 97 errno_t rc; 98 98 99 ddf_msg(LVL_DEBUG, "i8259_dev_add(%p)", dev);99 ddf_msg(LVL_DEBUG, "i8259_dev_add(%p)", dev); 100 100 i8259 = ddf_dev_data_alloc(dev, sizeof(i8259_t)); 101 101 if (i8259 == NULL) { … … 117 117 static errno_t i8259_dev_remove(ddf_dev_t *dev) 118 118 { 119 i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev);119 i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev); 120 120 121 ddf_msg(LVL_DEBUG, "i8259_dev_remove(%p)", dev);121 ddf_msg(LVL_DEBUG, "i8259_dev_remove(%p)", dev); 122 122 123 return i8259_remove(i8259);123 return i8259_remove(i8259); 124 124 } 125 125 126 126 static errno_t i8259_dev_gone(ddf_dev_t *dev) 127 127 { 128 i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev);128 i8259_t *i8259 = (i8259_t *)ddf_dev_data_get(dev); 129 129 130 ddf_msg(LVL_DEBUG, "i8259_dev_gone(%p)", dev);130 ddf_msg(LVL_DEBUG, "i8259_dev_gone(%p)", dev); 131 131 132 return i8259_gone(i8259);132 return i8259_gone(i8259); 133 133 } 134 134 135 135 static errno_t i8259_fun_online(ddf_fun_t *fun) 136 136 { 137 ddf_msg(LVL_DEBUG, "i8259_fun_online()");138 return ddf_fun_online(fun);137 ddf_msg(LVL_DEBUG, "i8259_fun_online()"); 138 return ddf_fun_online(fun); 139 139 } 140 140 141 141 static errno_t i8259_fun_offline(ddf_fun_t *fun) 142 142 { 143 ddf_msg(LVL_DEBUG, "i8259_fun_offline()");144 return ddf_fun_offline(fun);143 ddf_msg(LVL_DEBUG, "i8259_fun_offline()"); 144 return ddf_fun_offline(fun); 145 145 } 146 146 -
uspace/drv/intctl/icp-ic/main.c
r47b2d7e3 r1433ecda 96 96 errno_t rc; 97 97 98 ddf_msg(LVL_DEBUG, "icpic_dev_add(%p)", dev);98 ddf_msg(LVL_DEBUG, "icpic_dev_add(%p)", dev); 99 99 icpic = ddf_dev_data_alloc(dev, sizeof(icpic_t)); 100 100 if (icpic == NULL) { … … 116 116 static errno_t icpic_dev_remove(ddf_dev_t *dev) 117 117 { 118 icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev);118 icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev); 119 119 120 ddf_msg(LVL_DEBUG, "icpic_dev_remove(%p)", dev);120 ddf_msg(LVL_DEBUG, "icpic_dev_remove(%p)", dev); 121 121 122 return icpic_remove(icpic);122 return icpic_remove(icpic); 123 123 } 124 124 125 125 static errno_t icpic_dev_gone(ddf_dev_t *dev) 126 126 { 127 icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev);127 icpic_t *icpic = (icpic_t *)ddf_dev_data_get(dev); 128 128 129 ddf_msg(LVL_DEBUG, "icpic_dev_gone(%p)", dev);129 ddf_msg(LVL_DEBUG, "icpic_dev_gone(%p)", dev); 130 130 131 return icpic_gone(icpic);131 return icpic_gone(icpic); 132 132 } 133 133 134 134 static errno_t icpic_fun_online(ddf_fun_t *fun) 135 135 { 136 ddf_msg(LVL_DEBUG, "icpic_fun_online()");137 return ddf_fun_online(fun);136 ddf_msg(LVL_DEBUG, "icpic_fun_online()"); 137 return ddf_fun_online(fun); 138 138 } 139 139 140 140 static errno_t icpic_fun_offline(ddf_fun_t *fun) 141 141 { 142 ddf_msg(LVL_DEBUG, "icpic_fun_offline()");143 return ddf_fun_offline(fun);142 ddf_msg(LVL_DEBUG, "icpic_fun_offline()"); 143 return ddf_fun_offline(fun); 144 144 } 145 145 -
uspace/drv/intctl/obio/main.c
r47b2d7e3 r1433ecda 116 116 static errno_t obio_dev_remove(ddf_dev_t *dev) 117 117 { 118 obio_t *obio = (obio_t *)ddf_dev_data_get(dev);118 obio_t *obio = (obio_t *)ddf_dev_data_get(dev); 119 119 120 ddf_msg(LVL_DEBUG, "obio_dev_remove(%p)", dev);120 ddf_msg(LVL_DEBUG, "obio_dev_remove(%p)", dev); 121 121 122 return obio_remove(obio);122 return obio_remove(obio); 123 123 } 124 124 125 125 static errno_t obio_dev_gone(ddf_dev_t *dev) 126 126 { 127 obio_t *obio = (obio_t *)ddf_dev_data_get(dev);127 obio_t *obio = (obio_t *)ddf_dev_data_get(dev); 128 128 129 ddf_msg(LVL_DEBUG, "obio_dev_gone(%p)", dev);129 ddf_msg(LVL_DEBUG, "obio_dev_gone(%p)", dev); 130 130 131 return obio_gone(obio);131 return obio_gone(obio); 132 132 } 133 133 134 134 static errno_t obio_fun_online(ddf_fun_t *fun) 135 135 { 136 ddf_msg(LVL_DEBUG, "obio_fun_online()");137 return ddf_fun_online(fun);136 ddf_msg(LVL_DEBUG, "obio_fun_online()"); 137 return ddf_fun_online(fun); 138 138 } 139 139 140 140 static errno_t obio_fun_offline(ddf_fun_t *fun) 141 141 { 142 ddf_msg(LVL_DEBUG, "obio_fun_offline()");143 return ddf_fun_offline(fun);142 ddf_msg(LVL_DEBUG, "obio_fun_offline()"); 143 return ddf_fun_offline(fun); 144 144 } 145 145 -
uspace/drv/nic/ar9271/ar9271.h
r47b2d7e3 r1433ecda 227 227 */ 228 228 static const uint32_t ar9271_2g_mode_array[][2] = { 229 { 0x00001030, 0x00000160},230 { 0x00001070, 0x0000018c},231 { 0x000010b0, 0x00003e38},232 { 0x000010f0, 0x00000000},233 { 0x00008014, 0x08400b00},234 { 0x0000801c, 0x12e0002b},235 { 0x00008318, 0x00003440},236 { 0x00009804, 0x000003c0}, /*< Note: overridden */237 { 0x00009820, 0x02020200},238 { 0x00009824, 0x01000e0e},239 { 0x00009828, 0x0a020001}, /*< Note: overridden */240 { 0x00009834, 0x00000e0e},241 { 0x00009838, 0x00000007},242 { 0x00009840, 0x206a012e},243 { 0x00009844, 0x03721620},244 { 0x00009848, 0x00001053},245 { 0x0000a848, 0x00001053},246 { 0x00009850, 0x6d4000e2},247 { 0x00009858, 0x7ec84d2e},248 { 0x0000985c, 0x3137605e},249 { 0x00009860, 0x00058d18},250 { 0x00009864, 0x0001ce00},251 { 0x00009868, 0x5ac640d0},252 { 0x0000986c, 0x06903881},253 { 0x00009910, 0x30002310},254 { 0x00009914, 0x00000898},255 { 0x00009918, 0x0000000b},256 { 0x00009924, 0xd00a800d},257 { 0x00009944, 0xffbc1020},258 { 0x00009960, 0x00000000},259 { 0x00009964, 0x00000000},260 { 0x000099b8, 0x0000421c},261 { 0x000099bc, 0x00000c00},262 { 0x000099c0, 0x05eea6d4},263 { 0x000099c4, 0x06336f77},264 { 0x000099c8, 0x6af6532f},265 { 0x000099cc, 0x08f186c8},266 { 0x000099d0, 0x00046384},267 { 0x000099d4, 0x00000000},268 { 0x000099d8, 0x00000000},269 { 0x00009a00, 0x00058084},270 { 0x00009a04, 0x00058088},271 { 0x00009a08, 0x0005808c},272 { 0x00009a0c, 0x00058100},273 { 0x00009a10, 0x00058104},274 { 0x00009a14, 0x00058108},275 { 0x00009a18, 0x0005810c},276 { 0x00009a1c, 0x00058110},277 { 0x00009a20, 0x00058114},278 { 0x00009a24, 0x00058180},279 { 0x00009a28, 0x00058184},280 { 0x00009a2c, 0x00058188},281 { 0x00009a30, 0x0005818c},282 { 0x00009a34, 0x00058190},283 { 0x00009a38, 0x00058194},284 { 0x00009a3c, 0x000581a0},285 { 0x00009a40, 0x0005820c},286 { 0x00009a44, 0x000581a8},287 { 0x00009a48, 0x00058284},288 { 0x00009a4c, 0x00058288},289 { 0x00009a50, 0x00058224},290 { 0x00009a54, 0x00058290},291 { 0x00009a58, 0x00058300},292 { 0x00009a5c, 0x00058304},293 { 0x00009a60, 0x00058308},294 { 0x00009a64, 0x0005830c},295 { 0x00009a68, 0x00058380},296 { 0x00009a6c, 0x00058384},297 { 0x00009a70, 0x00068700},298 { 0x00009a74, 0x00068704},299 { 0x00009a78, 0x00068708},300 { 0x00009a7c, 0x0006870c},301 { 0x00009a80, 0x00068780},302 { 0x00009a84, 0x00068784},303 { 0x00009a88, 0x00078b00},304 { 0x00009a8c, 0x00078b04},305 { 0x00009a90, 0x00078b08},306 { 0x00009a94, 0x00078b0c},307 { 0x00009a98, 0x00078b80},308 { 0x00009a9c, 0x00078b84},309 { 0x00009aa0, 0x00078b88},310 { 0x00009aa4, 0x00078b8c},311 { 0x00009aa8, 0x00078b90},312 { 0x00009aac, 0x000caf80},313 { 0x00009ab0, 0x000caf84},314 { 0x00009ab4, 0x000caf88},315 { 0x00009ab8, 0x000caf8c},316 { 0x00009abc, 0x000caf90},317 { 0x00009ac0, 0x000db30c},318 { 0x00009ac4, 0x000db310},319 { 0x00009ac8, 0x000db384},320 { 0x00009acc, 0x000db388},321 { 0x00009ad0, 0x000db324},322 { 0x00009ad4, 0x000eb704},323 { 0x00009ad8, 0x000eb6a4},324 { 0x00009adc, 0x000eb6a8},325 { 0x00009ae0, 0x000eb710},326 { 0x00009ae4, 0x000eb714},327 { 0x00009ae8, 0x000eb720},328 { 0x00009aec, 0x000eb724},329 { 0x00009af0, 0x000eb728},330 { 0x00009af4, 0x000eb72c},331 { 0x00009af8, 0x000eb7a0},332 { 0x00009afc, 0x000eb7a4},333 { 0x00009b00, 0x000eb7a8},334 { 0x00009b04, 0x000eb7b0},335 { 0x00009b08, 0x000eb7b4},336 { 0x00009b0c, 0x000eb7b8},337 { 0x00009b10, 0x000eb7a5},338 { 0x00009b14, 0x000eb7a9},339 { 0x00009b18, 0x000eb7ad},340 { 0x00009b1c, 0x000eb7b1},341 { 0x00009b20, 0x000eb7b5},342 { 0x00009b24, 0x000eb7b9},343 { 0x00009b28, 0x000eb7c5},344 { 0x00009b2c, 0x000eb7c9},345 { 0x00009b30, 0x000eb7d1},346 { 0x00009b34, 0x000eb7d5},347 { 0x00009b38, 0x000eb7d9},348 { 0x00009b3c, 0x000eb7c6},349 { 0x00009b40, 0x000eb7ca},350 { 0x00009b44, 0x000eb7ce},351 { 0x00009b48, 0x000eb7d2},352 { 0x00009b4c, 0x000eb7d6},353 { 0x00009b50, 0x000eb7c3},354 { 0x00009b54, 0x000eb7c7},355 { 0x00009b58, 0x000eb7cb},356 { 0x00009b5c, 0x000eb7cf},357 { 0x00009b60, 0x000eb7d7},358 { 0x00009b64, 0x000eb7db},359 { 0x00009b68, 0x000eb7db},360 { 0x00009b6c, 0x000eb7db},361 { 0x00009b70, 0x000eb7db},362 { 0x00009b74, 0x000eb7db},363 { 0x00009b78, 0x000eb7db},364 { 0x00009b7c, 0x000eb7db},365 { 0x00009b80, 0x000eb7db},366 { 0x00009b84, 0x000eb7db},367 { 0x00009b88, 0x000eb7db},368 { 0x00009b8c, 0x000eb7db},369 { 0x00009b90, 0x000eb7db},370 { 0x00009b94, 0x000eb7db},371 { 0x00009b98, 0x000eb7db},372 { 0x00009b9c, 0x000eb7db},373 { 0x00009ba0, 0x000eb7db},374 { 0x00009ba4, 0x000eb7db},375 { 0x00009ba8, 0x000eb7db},376 { 0x00009bac, 0x000eb7db},377 { 0x00009bb0, 0x000eb7db},378 { 0x00009bb4, 0x000eb7db},379 { 0x00009bb8, 0x000eb7db},380 { 0x00009bbc, 0x000eb7db},381 { 0x00009bc0, 0x000eb7db},382 { 0x00009bc4, 0x000eb7db},383 { 0x00009bc8, 0x000eb7db},384 { 0x00009bcc, 0x000eb7db},385 { 0x00009bd0, 0x000eb7db},386 { 0x00009bd4, 0x000eb7db},387 { 0x00009bd8, 0x000eb7db},388 { 0x00009bdc, 0x000eb7db},389 { 0x00009be0, 0x000eb7db},390 { 0x00009be4, 0x000eb7db},391 { 0x00009be8, 0x000eb7db},392 { 0x00009bec, 0x000eb7db},393 { 0x00009bf0, 0x000eb7db},394 { 0x00009bf4, 0x000eb7db},395 { 0x00009bf8, 0x000eb7db},396 { 0x00009bfc, 0x000eb7db},397 { 0x0000aa00, 0x00058084},398 { 0x0000aa04, 0x00058088},399 { 0x0000aa08, 0x0005808c},400 { 0x0000aa0c, 0x00058100},401 { 0x0000aa10, 0x00058104},402 { 0x0000aa14, 0x00058108},403 { 0x0000aa18, 0x0005810c},404 { 0x0000aa1c, 0x00058110},405 { 0x0000aa20, 0x00058114},406 { 0x0000aa24, 0x00058180},407 { 0x0000aa28, 0x00058184},408 { 0x0000aa2c, 0x00058188},409 { 0x0000aa30, 0x0005818c},410 { 0x0000aa34, 0x00058190},411 { 0x0000aa38, 0x00058194},412 { 0x0000aa3c, 0x000581a0},413 { 0x0000aa40, 0x0005820c},414 { 0x0000aa44, 0x000581a8},415 { 0x0000aa48, 0x00058284},416 { 0x0000aa4c, 0x00058288},417 { 0x0000aa50, 0x00058224},418 { 0x0000aa54, 0x00058290},419 { 0x0000aa58, 0x00058300},420 { 0x0000aa5c, 0x00058304},421 { 0x0000aa60, 0x00058308},422 { 0x0000aa64, 0x0005830c},423 { 0x0000aa68, 0x00058380},424 { 0x0000aa6c, 0x00058384},425 { 0x0000aa70, 0x00068700},426 { 0x0000aa74, 0x00068704},427 { 0x0000aa78, 0x00068708},428 { 0x0000aa7c, 0x0006870c},429 { 0x0000aa80, 0x00068780},430 { 0x0000aa84, 0x00068784},431 { 0x0000aa88, 0x00078b00},432 { 0x0000aa8c, 0x00078b04},433 { 0x0000aa90, 0x00078b08},434 { 0x0000aa94, 0x00078b0c},435 { 0x0000aa98, 0x00078b80},436 { 0x0000aa9c, 0x00078b84},437 { 0x0000aaa0, 0x00078b88},438 { 0x0000aaa4, 0x00078b8c},439 { 0x0000aaa8, 0x00078b90},440 { 0x0000aaac, 0x000caf80},441 { 0x0000aab0, 0x000caf84},442 { 0x0000aab4, 0x000caf88},443 { 0x0000aab8, 0x000caf8c},444 { 0x0000aabc, 0x000caf90},445 { 0x0000aac0, 0x000db30c},446 { 0x0000aac4, 0x000db310},447 { 0x0000aac8, 0x000db384},448 { 0x0000aacc, 0x000db388},449 { 0x0000aad0, 0x000db324},450 { 0x0000aad4, 0x000eb704},451 { 0x0000aad8, 0x000eb6a4},452 { 0x0000aadc, 0x000eb6a8},453 { 0x0000aae0, 0x000eb710},454 { 0x0000aae4, 0x000eb714},455 { 0x0000aae8, 0x000eb720},456 { 0x0000aaec, 0x000eb724},457 { 0x0000aaf0, 0x000eb728},458 { 0x0000aaf4, 0x000eb72c},459 { 0x0000aaf8, 0x000eb7a0},460 { 0x0000aafc, 0x000eb7a4},461 { 0x0000ab00, 0x000eb7a8},462 { 0x0000ab04, 0x000eb7b0},463 { 0x0000ab08, 0x000eb7b4},464 { 0x0000ab0c, 0x000eb7b8},465 { 0x0000ab10, 0x000eb7a5},466 { 0x0000ab14, 0x000eb7a9},467 { 0x0000ab18, 0x000eb7ad},468 { 0x0000ab1c, 0x000eb7b1},469 { 0x0000ab20, 0x000eb7b5},470 { 0x0000ab24, 0x000eb7b9},471 { 0x0000ab28, 0x000eb7c5},472 { 0x0000ab2c, 0x000eb7c9},473 { 0x0000ab30, 0x000eb7d1},474 { 0x0000ab34, 0x000eb7d5},475 { 0x0000ab38, 0x000eb7d9},476 { 0x0000ab3c, 0x000eb7c6},477 { 0x0000ab40, 0x000eb7ca},478 { 0x0000ab44, 0x000eb7ce},479 { 0x0000ab48, 0x000eb7d2},480 { 0x0000ab4c, 0x000eb7d6},481 { 0x0000ab50, 0x000eb7c3},482 { 0x0000ab54, 0x000eb7c7},483 { 0x0000ab58, 0x000eb7cb},484 { 0x0000ab5c, 0x000eb7cf},485 { 0x0000ab60, 0x000eb7d7},486 { 0x0000ab64, 0x000eb7db},487 { 0x0000ab68, 0x000eb7db},488 { 0x0000ab6c, 0x000eb7db},489 { 0x0000ab70, 0x000eb7db},490 { 0x0000ab74, 0x000eb7db},491 { 0x0000ab78, 0x000eb7db},492 { 0x0000ab7c, 0x000eb7db},493 { 0x0000ab80, 0x000eb7db},494 { 0x0000ab84, 0x000eb7db},495 { 0x0000ab88, 0x000eb7db},496 { 0x0000ab8c, 0x000eb7db},497 { 0x0000ab90, 0x000eb7db},498 { 0x0000ab94, 0x000eb7db},499 { 0x0000ab98, 0x000eb7db},500 { 0x0000ab9c, 0x000eb7db},501 { 0x0000aba0, 0x000eb7db},502 { 0x0000aba4, 0x000eb7db},503 { 0x0000aba8, 0x000eb7db},504 { 0x0000abac, 0x000eb7db},505 { 0x0000abb0, 0x000eb7db},506 { 0x0000abb4, 0x000eb7db},507 { 0x0000abb8, 0x000eb7db},508 { 0x0000abbc, 0x000eb7db},509 { 0x0000abc0, 0x000eb7db},510 { 0x0000abc4, 0x000eb7db},511 { 0x0000abc8, 0x000eb7db},512 { 0x0000abcc, 0x000eb7db},513 { 0x0000abd0, 0x000eb7db},514 { 0x0000abd4, 0x000eb7db},515 { 0x0000abd8, 0x000eb7db},516 { 0x0000abdc, 0x000eb7db},517 { 0x0000abe0, 0x000eb7db},518 { 0x0000abe4, 0x000eb7db},519 { 0x0000abe8, 0x000eb7db},520 { 0x0000abec, 0x000eb7db},521 { 0x0000abf0, 0x000eb7db},522 { 0x0000abf4, 0x000eb7db},523 { 0x0000abf8, 0x000eb7db},524 { 0x0000abfc, 0x000eb7db},525 { 0x0000a204, 0x00000004},526 { 0x0000a20c, 0x0001f000},527 { 0x0000b20c, 0x0001f000},528 { 0x0000a21c, 0x1883800a},529 { 0x0000a230, 0x00000108},530 { 0x0000a250, 0x0004a000},531 { 0x0000a358, 0x7999aa0e}229 { 0x00001030, 0x00000160 }, 230 { 0x00001070, 0x0000018c }, 231 { 0x000010b0, 0x00003e38 }, 232 { 0x000010f0, 0x00000000 }, 233 { 0x00008014, 0x08400b00 }, 234 { 0x0000801c, 0x12e0002b }, 235 { 0x00008318, 0x00003440 }, 236 { 0x00009804, 0x000003c0 }, /*< Note: overridden */ 237 { 0x00009820, 0x02020200 }, 238 { 0x00009824, 0x01000e0e }, 239 { 0x00009828, 0x0a020001 }, /*< Note: overridden */ 240 { 0x00009834, 0x00000e0e }, 241 { 0x00009838, 0x00000007 }, 242 { 0x00009840, 0x206a012e }, 243 { 0x00009844, 0x03721620 }, 244 { 0x00009848, 0x00001053 }, 245 { 0x0000a848, 0x00001053 }, 246 { 0x00009850, 0x6d4000e2 }, 247 { 0x00009858, 0x7ec84d2e }, 248 { 0x0000985c, 0x3137605e }, 249 { 0x00009860, 0x00058d18 }, 250 { 0x00009864, 0x0001ce00 }, 251 { 0x00009868, 0x5ac640d0 }, 252 { 0x0000986c, 0x06903881 }, 253 { 0x00009910, 0x30002310 }, 254 { 0x00009914, 0x00000898 }, 255 { 0x00009918, 0x0000000b }, 256 { 0x00009924, 0xd00a800d }, 257 { 0x00009944, 0xffbc1020 }, 258 { 0x00009960, 0x00000000 }, 259 { 0x00009964, 0x00000000 }, 260 { 0x000099b8, 0x0000421c }, 261 { 0x000099bc, 0x00000c00 }, 262 { 0x000099c0, 0x05eea6d4 }, 263 { 0x000099c4, 0x06336f77 }, 264 { 0x000099c8, 0x6af6532f }, 265 { 0x000099cc, 0x08f186c8 }, 266 { 0x000099d0, 0x00046384 }, 267 { 0x000099d4, 0x00000000 }, 268 { 0x000099d8, 0x00000000 }, 269 { 0x00009a00, 0x00058084 }, 270 { 0x00009a04, 0x00058088 }, 271 { 0x00009a08, 0x0005808c }, 272 { 0x00009a0c, 0x00058100 }, 273 { 0x00009a10, 0x00058104 }, 274 { 0x00009a14, 0x00058108 }, 275 { 0x00009a18, 0x0005810c }, 276 { 0x00009a1c, 0x00058110 }, 277 { 0x00009a20, 0x00058114 }, 278 { 0x00009a24, 0x00058180 }, 279 { 0x00009a28, 0x00058184 }, 280 { 0x00009a2c, 0x00058188 }, 281 { 0x00009a30, 0x0005818c }, 282 { 0x00009a34, 0x00058190 }, 283 { 0x00009a38, 0x00058194 }, 284 { 0x00009a3c, 0x000581a0 }, 285 { 0x00009a40, 0x0005820c }, 286 { 0x00009a44, 0x000581a8 }, 287 { 0x00009a48, 0x00058284 }, 288 { 0x00009a4c, 0x00058288 }, 289 { 0x00009a50, 0x00058224 }, 290 { 0x00009a54, 0x00058290 }, 291 { 0x00009a58, 0x00058300 }, 292 { 0x00009a5c, 0x00058304 }, 293 { 0x00009a60, 0x00058308 }, 294 { 0x00009a64, 0x0005830c }, 295 { 0x00009a68, 0x00058380 }, 296 { 0x00009a6c, 0x00058384 }, 297 { 0x00009a70, 0x00068700 }, 298 { 0x00009a74, 0x00068704 }, 299 { 0x00009a78, 0x00068708 }, 300 { 0x00009a7c, 0x0006870c }, 301 { 0x00009a80, 0x00068780 }, 302 { 0x00009a84, 0x00068784 }, 303 { 0x00009a88, 0x00078b00 }, 304 { 0x00009a8c, 0x00078b04 }, 305 { 0x00009a90, 0x00078b08 }, 306 { 0x00009a94, 0x00078b0c }, 307 { 0x00009a98, 0x00078b80 }, 308 { 0x00009a9c, 0x00078b84 }, 309 { 0x00009aa0, 0x00078b88 }, 310 { 0x00009aa4, 0x00078b8c }, 311 { 0x00009aa8, 0x00078b90 }, 312 { 0x00009aac, 0x000caf80 }, 313 { 0x00009ab0, 0x000caf84 }, 314 { 0x00009ab4, 0x000caf88 }, 315 { 0x00009ab8, 0x000caf8c }, 316 { 0x00009abc, 0x000caf90 }, 317 { 0x00009ac0, 0x000db30c }, 318 { 0x00009ac4, 0x000db310 }, 319 { 0x00009ac8, 0x000db384 }, 320 { 0x00009acc, 0x000db388 }, 321 { 0x00009ad0, 0x000db324 }, 322 { 0x00009ad4, 0x000eb704 }, 323 { 0x00009ad8, 0x000eb6a4 }, 324 { 0x00009adc, 0x000eb6a8 }, 325 { 0x00009ae0, 0x000eb710 }, 326 { 0x00009ae4, 0x000eb714 }, 327 { 0x00009ae8, 0x000eb720 }, 328 { 0x00009aec, 0x000eb724 }, 329 { 0x00009af0, 0x000eb728 }, 330 { 0x00009af4, 0x000eb72c }, 331 { 0x00009af8, 0x000eb7a0 }, 332 { 0x00009afc, 0x000eb7a4 }, 333 { 0x00009b00, 0x000eb7a8 }, 334 { 0x00009b04, 0x000eb7b0 }, 335 { 0x00009b08, 0x000eb7b4 }, 336 { 0x00009b0c, 0x000eb7b8 }, 337 { 0x00009b10, 0x000eb7a5 }, 338 { 0x00009b14, 0x000eb7a9 }, 339 { 0x00009b18, 0x000eb7ad }, 340 { 0x00009b1c, 0x000eb7b1 }, 341 { 0x00009b20, 0x000eb7b5 }, 342 { 0x00009b24, 0x000eb7b9 }, 343 { 0x00009b28, 0x000eb7c5 }, 344 { 0x00009b2c, 0x000eb7c9 }, 345 { 0x00009b30, 0x000eb7d1 }, 346 { 0x00009b34, 0x000eb7d5 }, 347 { 0x00009b38, 0x000eb7d9 }, 348 { 0x00009b3c, 0x000eb7c6 }, 349 { 0x00009b40, 0x000eb7ca }, 350 { 0x00009b44, 0x000eb7ce }, 351 { 0x00009b48, 0x000eb7d2 }, 352 { 0x00009b4c, 0x000eb7d6 }, 353 { 0x00009b50, 0x000eb7c3 }, 354 { 0x00009b54, 0x000eb7c7 }, 355 { 0x00009b58, 0x000eb7cb }, 356 { 0x00009b5c, 0x000eb7cf }, 357 { 0x00009b60, 0x000eb7d7 }, 358 { 0x00009b64, 0x000eb7db }, 359 { 0x00009b68, 0x000eb7db }, 360 { 0x00009b6c, 0x000eb7db }, 361 { 0x00009b70, 0x000eb7db }, 362 { 0x00009b74, 0x000eb7db }, 363 { 0x00009b78, 0x000eb7db }, 364 { 0x00009b7c, 0x000eb7db }, 365 { 0x00009b80, 0x000eb7db }, 366 { 0x00009b84, 0x000eb7db }, 367 { 0x00009b88, 0x000eb7db }, 368 { 0x00009b8c, 0x000eb7db }, 369 { 0x00009b90, 0x000eb7db }, 370 { 0x00009b94, 0x000eb7db }, 371 { 0x00009b98, 0x000eb7db }, 372 { 0x00009b9c, 0x000eb7db }, 373 { 0x00009ba0, 0x000eb7db }, 374 { 0x00009ba4, 0x000eb7db }, 375 { 0x00009ba8, 0x000eb7db }, 376 { 0x00009bac, 0x000eb7db }, 377 { 0x00009bb0, 0x000eb7db }, 378 { 0x00009bb4, 0x000eb7db }, 379 { 0x00009bb8, 0x000eb7db }, 380 { 0x00009bbc, 0x000eb7db }, 381 { 0x00009bc0, 0x000eb7db }, 382 { 0x00009bc4, 0x000eb7db }, 383 { 0x00009bc8, 0x000eb7db }, 384 { 0x00009bcc, 0x000eb7db }, 385 { 0x00009bd0, 0x000eb7db }, 386 { 0x00009bd4, 0x000eb7db }, 387 { 0x00009bd8, 0x000eb7db }, 388 { 0x00009bdc, 0x000eb7db }, 389 { 0x00009be0, 0x000eb7db }, 390 { 0x00009be4, 0x000eb7db }, 391 { 0x00009be8, 0x000eb7db }, 392 { 0x00009bec, 0x000eb7db }, 393 { 0x00009bf0, 0x000eb7db }, 394 { 0x00009bf4, 0x000eb7db }, 395 { 0x00009bf8, 0x000eb7db }, 396 { 0x00009bfc, 0x000eb7db }, 397 { 0x0000aa00, 0x00058084 }, 398 { 0x0000aa04, 0x00058088 }, 399 { 0x0000aa08, 0x0005808c }, 400 { 0x0000aa0c, 0x00058100 }, 401 { 0x0000aa10, 0x00058104 }, 402 { 0x0000aa14, 0x00058108 }, 403 { 0x0000aa18, 0x0005810c }, 404 { 0x0000aa1c, 0x00058110 }, 405 { 0x0000aa20, 0x00058114 }, 406 { 0x0000aa24, 0x00058180 }, 407 { 0x0000aa28, 0x00058184 }, 408 { 0x0000aa2c, 0x00058188 }, 409 { 0x0000aa30, 0x0005818c }, 410 { 0x0000aa34, 0x00058190 }, 411 { 0x0000aa38, 0x00058194 }, 412 { 0x0000aa3c, 0x000581a0 }, 413 { 0x0000aa40, 0x0005820c }, 414 { 0x0000aa44, 0x000581a8 }, 415 { 0x0000aa48, 0x00058284 }, 416 { 0x0000aa4c, 0x00058288 }, 417 { 0x0000aa50, 0x00058224 }, 418 { 0x0000aa54, 0x00058290 }, 419 { 0x0000aa58, 0x00058300 }, 420 { 0x0000aa5c, 0x00058304 }, 421 { 0x0000aa60, 0x00058308 }, 422 { 0x0000aa64, 0x0005830c }, 423 { 0x0000aa68, 0x00058380 }, 424 { 0x0000aa6c, 0x00058384 }, 425 { 0x0000aa70, 0x00068700 }, 426 { 0x0000aa74, 0x00068704 }, 427 { 0x0000aa78, 0x00068708 }, 428 { 0x0000aa7c, 0x0006870c }, 429 { 0x0000aa80, 0x00068780 }, 430 { 0x0000aa84, 0x00068784 }, 431 { 0x0000aa88, 0x00078b00 }, 432 { 0x0000aa8c, 0x00078b04 }, 433 { 0x0000aa90, 0x00078b08 }, 434 { 0x0000aa94, 0x00078b0c }, 435 { 0x0000aa98, 0x00078b80 }, 436 { 0x0000aa9c, 0x00078b84 }, 437 { 0x0000aaa0, 0x00078b88 }, 438 { 0x0000aaa4, 0x00078b8c }, 439 { 0x0000aaa8, 0x00078b90 }, 440 { 0x0000aaac, 0x000caf80 }, 441 { 0x0000aab0, 0x000caf84 }, 442 { 0x0000aab4, 0x000caf88 }, 443 { 0x0000aab8, 0x000caf8c }, 444 { 0x0000aabc, 0x000caf90 }, 445 { 0x0000aac0, 0x000db30c }, 446 { 0x0000aac4, 0x000db310 }, 447 { 0x0000aac8, 0x000db384 }, 448 { 0x0000aacc, 0x000db388 }, 449 { 0x0000aad0, 0x000db324 }, 450 { 0x0000aad4, 0x000eb704 }, 451 { 0x0000aad8, 0x000eb6a4 }, 452 { 0x0000aadc, 0x000eb6a8 }, 453 { 0x0000aae0, 0x000eb710 }, 454 { 0x0000aae4, 0x000eb714 }, 455 { 0x0000aae8, 0x000eb720 }, 456 { 0x0000aaec, 0x000eb724 }, 457 { 0x0000aaf0, 0x000eb728 }, 458 { 0x0000aaf4, 0x000eb72c }, 459 { 0x0000aaf8, 0x000eb7a0 }, 460 { 0x0000aafc, 0x000eb7a4 }, 461 { 0x0000ab00, 0x000eb7a8 }, 462 { 0x0000ab04, 0x000eb7b0 }, 463 { 0x0000ab08, 0x000eb7b4 }, 464 { 0x0000ab0c, 0x000eb7b8 }, 465 { 0x0000ab10, 0x000eb7a5 }, 466 { 0x0000ab14, 0x000eb7a9 }, 467 { 0x0000ab18, 0x000eb7ad }, 468 { 0x0000ab1c, 0x000eb7b1 }, 469 { 0x0000ab20, 0x000eb7b5 }, 470 { 0x0000ab24, 0x000eb7b9 }, 471 { 0x0000ab28, 0x000eb7c5 }, 472 { 0x0000ab2c, 0x000eb7c9 }, 473 { 0x0000ab30, 0x000eb7d1 }, 474 { 0x0000ab34, 0x000eb7d5 }, 475 { 0x0000ab38, 0x000eb7d9 }, 476 { 0x0000ab3c, 0x000eb7c6 }, 477 { 0x0000ab40, 0x000eb7ca }, 478 { 0x0000ab44, 0x000eb7ce }, 479 { 0x0000ab48, 0x000eb7d2 }, 480 { 0x0000ab4c, 0x000eb7d6 }, 481 { 0x0000ab50, 0x000eb7c3 }, 482 { 0x0000ab54, 0x000eb7c7 }, 483 { 0x0000ab58, 0x000eb7cb }, 484 { 0x0000ab5c, 0x000eb7cf }, 485 { 0x0000ab60, 0x000eb7d7 }, 486 { 0x0000ab64, 0x000eb7db }, 487 { 0x0000ab68, 0x000eb7db }, 488 { 0x0000ab6c, 0x000eb7db }, 489 { 0x0000ab70, 0x000eb7db }, 490 { 0x0000ab74, 0x000eb7db }, 491 { 0x0000ab78, 0x000eb7db }, 492 { 0x0000ab7c, 0x000eb7db }, 493 { 0x0000ab80, 0x000eb7db }, 494 { 0x0000ab84, 0x000eb7db }, 495 { 0x0000ab88, 0x000eb7db }, 496 { 0x0000ab8c, 0x000eb7db }, 497 { 0x0000ab90, 0x000eb7db }, 498 { 0x0000ab94, 0x000eb7db }, 499 { 0x0000ab98, 0x000eb7db }, 500 { 0x0000ab9c, 0x000eb7db }, 501 { 0x0000aba0, 0x000eb7db }, 502 { 0x0000aba4, 0x000eb7db }, 503 { 0x0000aba8, 0x000eb7db }, 504 { 0x0000abac, 0x000eb7db }, 505 { 0x0000abb0, 0x000eb7db }, 506 { 0x0000abb4, 0x000eb7db }, 507 { 0x0000abb8, 0x000eb7db }, 508 { 0x0000abbc, 0x000eb7db }, 509 { 0x0000abc0, 0x000eb7db }, 510 { 0x0000abc4, 0x000eb7db }, 511 { 0x0000abc8, 0x000eb7db }, 512 { 0x0000abcc, 0x000eb7db }, 513 { 0x0000abd0, 0x000eb7db }, 514 { 0x0000abd4, 0x000eb7db }, 515 { 0x0000abd8, 0x000eb7db }, 516 { 0x0000abdc, 0x000eb7db }, 517 { 0x0000abe0, 0x000eb7db }, 518 { 0x0000abe4, 0x000eb7db }, 519 { 0x0000abe8, 0x000eb7db }, 520 { 0x0000abec, 0x000eb7db }, 521 { 0x0000abf0, 0x000eb7db }, 522 { 0x0000abf4, 0x000eb7db }, 523 { 0x0000abf8, 0x000eb7db }, 524 { 0x0000abfc, 0x000eb7db }, 525 { 0x0000a204, 0x00000004 }, 526 { 0x0000a20c, 0x0001f000 }, 527 { 0x0000b20c, 0x0001f000 }, 528 { 0x0000a21c, 0x1883800a }, 529 { 0x0000a230, 0x00000108 }, 530 { 0x0000a250, 0x0004a000 }, 531 { 0x0000a358, 0x7999aa0e } 532 532 }; 533 533 … … 540 540 */ 541 541 static const uint32_t ar9271_2g_tx_array[][2] = { 542 { 0x0000a300, 0x00010000},543 { 0x0000a304, 0x00016200},544 { 0x0000a308, 0x00018201},545 { 0x0000a30c, 0x0001b240},546 { 0x0000a310, 0x0001d241},547 { 0x0000a314, 0x0001f600},548 { 0x0000a318, 0x00022800},549 { 0x0000a31c, 0x00026802},550 { 0x0000a320, 0x0002b805},551 { 0x0000a324, 0x0002ea41},552 { 0x0000a328, 0x00038b00},553 { 0x0000a32c, 0x0003ab40},554 { 0x0000a330, 0x0003cd80},555 { 0x0000a334, 0x000368de},556 { 0x0000a338, 0x0003891e},557 { 0x0000a33c, 0x0003a95e},558 { 0x0000a340, 0x0003e9df},559 { 0x0000a344, 0x0003e9df},560 { 0x0000a348, 0x0003e9df},561 { 0x0000a34c, 0x0003e9df},562 { 0x0000a350, 0x0003e9df},563 { 0x0000a354, 0x0003e9df},564 { 0x00007838, 0x0000002b},565 { 0x00007824, 0x00d8a7ff},566 { 0x0000786c, 0x08609eba},567 { 0x00007820, 0x00000c00},568 { 0x0000a274, 0x0a214652},569 { 0x0000a278, 0x0e739ce7},570 { 0x0000a27c, 0x05018063},571 { 0x0000a394, 0x06318c63},572 { 0x0000a398, 0x00000063},573 { 0x0000a3dc, 0x06318c63},574 { 0x0000a3e0, 0x00000063}542 { 0x0000a300, 0x00010000 }, 543 { 0x0000a304, 0x00016200 }, 544 { 0x0000a308, 0x00018201 }, 545 { 0x0000a30c, 0x0001b240 }, 546 { 0x0000a310, 0x0001d241 }, 547 { 0x0000a314, 0x0001f600 }, 548 { 0x0000a318, 0x00022800 }, 549 { 0x0000a31c, 0x00026802 }, 550 { 0x0000a320, 0x0002b805 }, 551 { 0x0000a324, 0x0002ea41 }, 552 { 0x0000a328, 0x00038b00 }, 553 { 0x0000a32c, 0x0003ab40 }, 554 { 0x0000a330, 0x0003cd80 }, 555 { 0x0000a334, 0x000368de }, 556 { 0x0000a338, 0x0003891e }, 557 { 0x0000a33c, 0x0003a95e }, 558 { 0x0000a340, 0x0003e9df }, 559 { 0x0000a344, 0x0003e9df }, 560 { 0x0000a348, 0x0003e9df }, 561 { 0x0000a34c, 0x0003e9df }, 562 { 0x0000a350, 0x0003e9df }, 563 { 0x0000a354, 0x0003e9df }, 564 { 0x00007838, 0x0000002b }, 565 { 0x00007824, 0x00d8a7ff }, 566 { 0x0000786c, 0x08609eba }, 567 { 0x00007820, 0x00000c00 }, 568 { 0x0000a274, 0x0a214652 }, 569 { 0x0000a278, 0x0e739ce7 }, 570 { 0x0000a27c, 0x05018063 }, 571 { 0x0000a394, 0x06318c63 }, 572 { 0x0000a398, 0x00000063 }, 573 { 0x0000a3dc, 0x06318c63 }, 574 { 0x0000a3e0, 0x00000063 } 575 575 }; 576 576 … … 583 583 */ 584 584 static const uint32_t ar9271_init_array[][2] = { 585 { 0x0000000c, 0x00000000},586 { 0x00000030, 0x00020045},587 { 0x00000034, 0x00000005},588 { 0x00000040, 0x00000000},589 { 0x00000044, 0x00000008},590 { 0x00000048, 0x00000008},591 { 0x0000004c, 0x00000010},592 { 0x00000050, 0x00000000},593 { 0x00000054, 0x0000001f},594 { 0x00000800, 0x00000000},595 { 0x00000804, 0x00000000},596 { 0x00000808, 0x00000000},597 { 0x0000080c, 0x00000000},598 { 0x00000810, 0x00000000},599 { 0x00000814, 0x00000000},600 { 0x00000818, 0x00000000},601 { 0x0000081c, 0x00000000},602 { 0x00000820, 0x00000000},603 { 0x00000824, 0x00000000},604 { 0x00001040, 0x002ffc0f},605 { 0x00001044, 0x002ffc0f},606 { 0x00001048, 0x002ffc0f},607 { 0x0000104c, 0x002ffc0f},608 { 0x00001050, 0x002ffc0f},609 { 0x00001054, 0x002ffc0f},610 { 0x00001058, 0x002ffc0f},611 { 0x0000105c, 0x002ffc0f},612 { 0x00001060, 0x002ffc0f},613 { 0x00001064, 0x002ffc0f},614 { 0x00001230, 0x00000000},615 { 0x00001270, 0x00000000},616 { 0x00001038, 0x00000000},617 { 0x00001078, 0x00000000},618 { 0x000010b8, 0x00000000},619 { 0x000010f8, 0x00000000},620 { 0x00001138, 0x00000000},621 { 0x00001178, 0x00000000},622 { 0x000011b8, 0x00000000},623 { 0x000011f8, 0x00000000},624 { 0x00001238, 0x00000000},625 { 0x00001278, 0x00000000},626 { 0x000012b8, 0x00000000},627 { 0x000012f8, 0x00000000},628 { 0x00001338, 0x00000000},629 { 0x00001378, 0x00000000},630 { 0x000013b8, 0x00000000},631 { 0x000013f8, 0x00000000},632 { 0x00001438, 0x00000000},633 { 0x00001478, 0x00000000},634 { 0x000014b8, 0x00000000},635 { 0x000014f8, 0x00000000},636 { 0x00001538, 0x00000000},637 { 0x00001578, 0x00000000},638 { 0x000015b8, 0x00000000},639 { 0x000015f8, 0x00000000},640 { 0x00001638, 0x00000000},641 { 0x00001678, 0x00000000},642 { 0x000016b8, 0x00000000},643 { 0x000016f8, 0x00000000},644 { 0x00001738, 0x00000000},645 { 0x00001778, 0x00000000},646 { 0x000017b8, 0x00000000},647 { 0x000017f8, 0x00000000},648 { 0x0000103c, 0x00000000},649 { 0x0000107c, 0x00000000},650 { 0x000010bc, 0x00000000},651 { 0x000010fc, 0x00000000},652 { 0x0000113c, 0x00000000},653 { 0x0000117c, 0x00000000},654 { 0x000011bc, 0x00000000},655 { 0x000011fc, 0x00000000},656 { 0x0000123c, 0x00000000},657 { 0x0000127c, 0x00000000},658 { 0x000012bc, 0x00000000},659 { 0x000012fc, 0x00000000},660 { 0x0000133c, 0x00000000},661 { 0x0000137c, 0x00000000},662 { 0x000013bc, 0x00000000},663 { 0x000013fc, 0x00000000},664 { 0x0000143c, 0x00000000},665 { 0x0000147c, 0x00000000},666 { 0x00004030, 0x00000002},667 { 0x0000403c, 0x00000002},668 { 0x00004024, 0x0000001f},669 { 0x00004060, 0x00000000},670 { 0x00004064, 0x00000000},671 { 0x00008018, 0x00000700},672 { 0x00008020, 0x00000000},673 { 0x00008038, 0x00000000},674 { 0x00008048, 0x00000000},675 { 0x00008054, 0x00000000},676 { 0x00008058, 0x00000000},677 { 0x0000805c, 0x000fc78f},678 { 0x00008060, 0xc7ff000f},679 { 0x00008064, 0x00000000},680 { 0x00008070, 0x00000000},681 { 0x000080b0, 0x00000000},682 { 0x000080b4, 0x00000000},683 { 0x000080b8, 0x00000000},684 { 0x000080bc, 0x00000000},685 { 0x000080c0, 0x2a80001a},686 { 0x000080c4, 0x05dc01e0},687 { 0x000080c8, 0x1f402710},688 { 0x000080cc, 0x01f40000},689 { 0x000080d0, 0x00001e00},690 { 0x000080d4, 0x00000000},691 { 0x000080d8, 0x00400000},692 { 0x000080e0, 0xffffffff},693 { 0x000080e4, 0x0000ffff},694 { 0x000080e8, 0x003f3f3f},695 { 0x000080ec, 0x00000000},696 { 0x000080f0, 0x00000000},697 { 0x000080f4, 0x00000000},698 { 0x000080f8, 0x00000000},699 { 0x000080fc, 0x00020000},700 { 0x00008100, 0x00020000},701 { 0x00008104, 0x00000001},702 { 0x00008108, 0x00000052},703 { 0x0000810c, 0x00000000},704 { 0x00008110, 0x00000168},705 { 0x00008118, 0x000100aa},706 { 0x0000811c, 0x00003210},707 { 0x00008120, 0x08f04810},708 { 0x00008124, 0x00000000},709 { 0x00008128, 0x00000000},710 { 0x0000812c, 0x00000000},711 { 0x00008130, 0x00000000},712 { 0x00008134, 0x00000000},713 { 0x00008138, 0x00000000},714 { 0x0000813c, 0x00000000},715 { 0x00008144, 0xffffffff},716 { 0x00008168, 0x00000000},717 { 0x0000816c, 0x00000000},718 { 0x00008170, 0x32143320},719 { 0x00008174, 0xfaa4fa50},720 { 0x00008178, 0x00000100},721 { 0x0000817c, 0x00000000},722 { 0x000081c0, 0x00000000},723 { 0x000081d0, 0x0000320a},724 { 0x000081ec, 0x00000000},725 { 0x000081f0, 0x00000000},726 { 0x000081f4, 0x00000000},727 { 0x000081f8, 0x00000000},728 { 0x000081fc, 0x00000000},729 { 0x00008200, 0x00000000},730 { 0x00008204, 0x00000000},731 { 0x00008208, 0x00000000},732 { 0x0000820c, 0x00000000},733 { 0x00008210, 0x00000000},734 { 0x00008214, 0x00000000},735 { 0x00008218, 0x00000000},736 { 0x0000821c, 0x00000000},737 { 0x00008220, 0x00000000},738 { 0x00008224, 0x00000000},739 { 0x00008228, 0x00000000},740 { 0x0000822c, 0x00000000},741 { 0x00008230, 0x00000000},742 { 0x00008234, 0x00000000},743 { 0x00008238, 0x00000000},744 { 0x0000823c, 0x00000000},745 { 0x00008240, 0x00100000},746 { 0x00008244, 0x0010f400},747 { 0x00008248, 0x00000100},748 { 0x0000824c, 0x0001e800},749 { 0x00008250, 0x00000000},750 { 0x00008254, 0x00000000},751 { 0x00008258, 0x00000000},752 { 0x0000825c, 0x400000ff},753 { 0x00008260, 0x00080922},754 { 0x00008264, 0x88a00010},755 { 0x00008270, 0x00000000},756 { 0x00008274, 0x40000000},757 { 0x00008278, 0x003e4180},758 { 0x0000827c, 0x00000000},759 { 0x00008284, 0x0000002c},760 { 0x00008288, 0x0000002c},761 { 0x0000828c, 0x00000000},762 { 0x00008294, 0x00000000},763 { 0x00008298, 0x00000000},764 { 0x0000829c, 0x00000000},765 { 0x00008300, 0x00000040},766 { 0x00008314, 0x00000000},767 { 0x00008328, 0x00000000},768 { 0x0000832c, 0x00000001},769 { 0x00008330, 0x00000302},770 { 0x00008334, 0x00000e00},771 { 0x00008338, 0x00ff0000},772 { 0x0000833c, 0x00000000},773 { 0x00008340, 0x00010380},774 { 0x00008344, 0x00481083}, /**< Note: disabled ADHOC_MCAST_KEYID feature */775 { 0x00007010, 0x00000030},776 { 0x00007034, 0x00000002},777 { 0x00007038, 0x000004c2},778 { 0x00007800, 0x00140000},779 { 0x00007804, 0x0e4548d8},780 { 0x00007808, 0x54214514},781 { 0x0000780c, 0x02025820},782 { 0x00007810, 0x71c0d388},783 { 0x00007814, 0x924934a8},784 { 0x0000781c, 0x00000000},785 { 0x00007828, 0x66964300},786 { 0x0000782c, 0x8db6d961},787 { 0x00007830, 0x8db6d96c},788 { 0x00007834, 0x6140008b},789 { 0x0000783c, 0x72ee0a72},790 { 0x00007840, 0xbbfffffc},791 { 0x00007844, 0x000c0db6},792 { 0x00007848, 0x6db6246f},793 { 0x0000784c, 0x6d9b66db},794 { 0x00007850, 0x6d8c6dba},795 { 0x00007854, 0x00040000},796 { 0x00007858, 0xdb003012},797 { 0x0000785c, 0x04924914},798 { 0x00007860, 0x21084210},799 { 0x00007864, 0xf7d7ffde},800 { 0x00007868, 0xc2034080},801 { 0x00007870, 0x10142c00},802 { 0x00009808, 0x00000000},803 { 0x0000980c, 0xafe68e30},804 { 0x00009810, 0xfd14e000},805 { 0x00009814, 0x9c0a9f6b},806 { 0x0000981c, 0x00000000},807 { 0x0000982c, 0x0000a000},808 { 0x00009830, 0x00000000},809 { 0x0000983c, 0x00200400},810 { 0x0000984c, 0x0040233c},811 { 0x00009854, 0x00000044},812 { 0x00009900, 0x00000000},813 { 0x00009904, 0x00000000},814 { 0x00009908, 0x00000000},815 { 0x0000990c, 0x00000000},816 { 0x0000991c, 0x10000fff},817 { 0x00009920, 0x04900000},818 { 0x00009928, 0x00000001},819 { 0x0000992c, 0x00000004},820 { 0x00009934, 0x1e1f2022},821 { 0x00009938, 0x0a0b0c0d},822 { 0x0000993c, 0x00000000},823 { 0x00009940, 0x14750604},824 { 0x00009948, 0x9280c00a},825 { 0x0000994c, 0x00020028},826 { 0x00009954, 0x5f3ca3de},827 { 0x00009958, 0x0108ecff},828 { 0x00009968, 0x000003ce},829 { 0x00009970, 0x192bb514},830 { 0x00009974, 0x00000000},831 { 0x00009978, 0x00000001},832 { 0x0000997c, 0x00000000},833 { 0x00009980, 0x00000000},834 { 0x00009984, 0x00000000},835 { 0x00009988, 0x00000000},836 { 0x0000998c, 0x00000000},837 { 0x00009990, 0x00000000},838 { 0x00009994, 0x00000000},839 { 0x00009998, 0x00000000},840 { 0x0000999c, 0x00000000},841 { 0x000099a0, 0x00000000},842 { 0x000099a4, 0x00000001},843 { 0x000099a8, 0x201fff00},844 { 0x000099ac, 0x2def0400},845 { 0x000099b0, 0x03051000},846 { 0x000099b4, 0x00000820},847 { 0x000099dc, 0x00000000},848 { 0x000099e0, 0x00000000},849 { 0x000099e4, 0xaaaaaaaa},850 { 0x000099e8, 0x3c466478},851 { 0x000099ec, 0x0cc80caa},852 { 0x000099f0, 0x00000000},853 { 0x0000a208, 0x803e68c8},854 { 0x0000a210, 0x4080a333},855 { 0x0000a214, 0x00206c10},856 { 0x0000a218, 0x009c4060},857 { 0x0000a220, 0x01834061},858 { 0x0000a224, 0x00000400},859 { 0x0000a228, 0x000003b5},860 { 0x0000a22c, 0x00000000},861 { 0x0000a234, 0x20202020},862 { 0x0000a238, 0x20202020},863 { 0x0000a244, 0x00000000},864 { 0x0000a248, 0xfffffffc},865 { 0x0000a24c, 0x00000000},866 { 0x0000a254, 0x00000000},867 { 0x0000a258, 0x0ccb5380},868 { 0x0000a25c, 0x15151501},869 { 0x0000a260, 0xdfa90f01},870 { 0x0000a268, 0x00000000},871 { 0x0000a26c, 0x0ebae9e6},872 { 0x0000a388, 0x0c000000},873 { 0x0000a38c, 0x20202020},874 { 0x0000a390, 0x20202020},875 { 0x0000a39c, 0x00000001},876 { 0x0000a3a0, 0x00000000},877 { 0x0000a3a4, 0x00000000},878 { 0x0000a3a8, 0x00000000},879 { 0x0000a3ac, 0x00000000},880 { 0x0000a3b0, 0x00000000},881 { 0x0000a3b4, 0x00000000},882 { 0x0000a3b8, 0x00000000},883 { 0x0000a3bc, 0x00000000},884 { 0x0000a3c0, 0x00000000},885 { 0x0000a3c4, 0x00000000},886 { 0x0000a3cc, 0x20202020},887 { 0x0000a3d0, 0x20202020},888 { 0x0000a3d4, 0x20202020},889 { 0x0000a3e4, 0x00000000},890 { 0x0000a3e8, 0x18c43433},891 { 0x0000a3ec, 0x00f70081},892 { 0x0000a3f0, 0x01036a2f},893 { 0x0000a3f4, 0x00000000},894 { 0x0000d270, 0x0d820820},895 { 0x0000d35c, 0x07ffffef},896 { 0x0000d360, 0x0fffffe7},897 { 0x0000d364, 0x17ffffe5},898 { 0x0000d368, 0x1fffffe4},899 { 0x0000d36c, 0x37ffffe3},900 { 0x0000d370, 0x3fffffe3},901 { 0x0000d374, 0x57ffffe3},902 { 0x0000d378, 0x5fffffe2},903 { 0x0000d37c, 0x7fffffe2},904 { 0x0000d380, 0x7f3c7bba},905 { 0x0000d384, 0xf3307ff0}585 { 0x0000000c, 0x00000000 }, 586 { 0x00000030, 0x00020045 }, 587 { 0x00000034, 0x00000005 }, 588 { 0x00000040, 0x00000000 }, 589 { 0x00000044, 0x00000008 }, 590 { 0x00000048, 0x00000008 }, 591 { 0x0000004c, 0x00000010 }, 592 { 0x00000050, 0x00000000 }, 593 { 0x00000054, 0x0000001f }, 594 { 0x00000800, 0x00000000 }, 595 { 0x00000804, 0x00000000 }, 596 { 0x00000808, 0x00000000 }, 597 { 0x0000080c, 0x00000000 }, 598 { 0x00000810, 0x00000000 }, 599 { 0x00000814, 0x00000000 }, 600 { 0x00000818, 0x00000000 }, 601 { 0x0000081c, 0x00000000 }, 602 { 0x00000820, 0x00000000 }, 603 { 0x00000824, 0x00000000 }, 604 { 0x00001040, 0x002ffc0f }, 605 { 0x00001044, 0x002ffc0f }, 606 { 0x00001048, 0x002ffc0f }, 607 { 0x0000104c, 0x002ffc0f }, 608 { 0x00001050, 0x002ffc0f }, 609 { 0x00001054, 0x002ffc0f }, 610 { 0x00001058, 0x002ffc0f }, 611 { 0x0000105c, 0x002ffc0f }, 612 { 0x00001060, 0x002ffc0f }, 613 { 0x00001064, 0x002ffc0f }, 614 { 0x00001230, 0x00000000 }, 615 { 0x00001270, 0x00000000 }, 616 { 0x00001038, 0x00000000 }, 617 { 0x00001078, 0x00000000 }, 618 { 0x000010b8, 0x00000000 }, 619 { 0x000010f8, 0x00000000 }, 620 { 0x00001138, 0x00000000 }, 621 { 0x00001178, 0x00000000 }, 622 { 0x000011b8, 0x00000000 }, 623 { 0x000011f8, 0x00000000 }, 624 { 0x00001238, 0x00000000 }, 625 { 0x00001278, 0x00000000 }, 626 { 0x000012b8, 0x00000000 }, 627 { 0x000012f8, 0x00000000 }, 628 { 0x00001338, 0x00000000 }, 629 { 0x00001378, 0x00000000 }, 630 { 0x000013b8, 0x00000000 }, 631 { 0x000013f8, 0x00000000 }, 632 { 0x00001438, 0x00000000 }, 633 { 0x00001478, 0x00000000 }, 634 { 0x000014b8, 0x00000000 }, 635 { 0x000014f8, 0x00000000 }, 636 { 0x00001538, 0x00000000 }, 637 { 0x00001578, 0x00000000 }, 638 { 0x000015b8, 0x00000000 }, 639 { 0x000015f8, 0x00000000 }, 640 { 0x00001638, 0x00000000 }, 641 { 0x00001678, 0x00000000 }, 642 { 0x000016b8, 0x00000000 }, 643 { 0x000016f8, 0x00000000 }, 644 { 0x00001738, 0x00000000 }, 645 { 0x00001778, 0x00000000 }, 646 { 0x000017b8, 0x00000000 }, 647 { 0x000017f8, 0x00000000 }, 648 { 0x0000103c, 0x00000000 }, 649 { 0x0000107c, 0x00000000 }, 650 { 0x000010bc, 0x00000000 }, 651 { 0x000010fc, 0x00000000 }, 652 { 0x0000113c, 0x00000000 }, 653 { 0x0000117c, 0x00000000 }, 654 { 0x000011bc, 0x00000000 }, 655 { 0x000011fc, 0x00000000 }, 656 { 0x0000123c, 0x00000000 }, 657 { 0x0000127c, 0x00000000 }, 658 { 0x000012bc, 0x00000000 }, 659 { 0x000012fc, 0x00000000 }, 660 { 0x0000133c, 0x00000000 }, 661 { 0x0000137c, 0x00000000 }, 662 { 0x000013bc, 0x00000000 }, 663 { 0x000013fc, 0x00000000 }, 664 { 0x0000143c, 0x00000000 }, 665 { 0x0000147c, 0x00000000 }, 666 { 0x00004030, 0x00000002 }, 667 { 0x0000403c, 0x00000002 }, 668 { 0x00004024, 0x0000001f }, 669 { 0x00004060, 0x00000000 }, 670 { 0x00004064, 0x00000000 }, 671 { 0x00008018, 0x00000700 }, 672 { 0x00008020, 0x00000000 }, 673 { 0x00008038, 0x00000000 }, 674 { 0x00008048, 0x00000000 }, 675 { 0x00008054, 0x00000000 }, 676 { 0x00008058, 0x00000000 }, 677 { 0x0000805c, 0x000fc78f }, 678 { 0x00008060, 0xc7ff000f }, 679 { 0x00008064, 0x00000000 }, 680 { 0x00008070, 0x00000000 }, 681 { 0x000080b0, 0x00000000 }, 682 { 0x000080b4, 0x00000000 }, 683 { 0x000080b8, 0x00000000 }, 684 { 0x000080bc, 0x00000000 }, 685 { 0x000080c0, 0x2a80001a }, 686 { 0x000080c4, 0x05dc01e0 }, 687 { 0x000080c8, 0x1f402710 }, 688 { 0x000080cc, 0x01f40000 }, 689 { 0x000080d0, 0x00001e00 }, 690 { 0x000080d4, 0x00000000 }, 691 { 0x000080d8, 0x00400000 }, 692 { 0x000080e0, 0xffffffff }, 693 { 0x000080e4, 0x0000ffff }, 694 { 0x000080e8, 0x003f3f3f }, 695 { 0x000080ec, 0x00000000 }, 696 { 0x000080f0, 0x00000000 }, 697 { 0x000080f4, 0x00000000 }, 698 { 0x000080f8, 0x00000000 }, 699 { 0x000080fc, 0x00020000 }, 700 { 0x00008100, 0x00020000 }, 701 { 0x00008104, 0x00000001 }, 702 { 0x00008108, 0x00000052 }, 703 { 0x0000810c, 0x00000000 }, 704 { 0x00008110, 0x00000168 }, 705 { 0x00008118, 0x000100aa }, 706 { 0x0000811c, 0x00003210 }, 707 { 0x00008120, 0x08f04810 }, 708 { 0x00008124, 0x00000000 }, 709 { 0x00008128, 0x00000000 }, 710 { 0x0000812c, 0x00000000 }, 711 { 0x00008130, 0x00000000 }, 712 { 0x00008134, 0x00000000 }, 713 { 0x00008138, 0x00000000 }, 714 { 0x0000813c, 0x00000000 }, 715 { 0x00008144, 0xffffffff }, 716 { 0x00008168, 0x00000000 }, 717 { 0x0000816c, 0x00000000 }, 718 { 0x00008170, 0x32143320 }, 719 { 0x00008174, 0xfaa4fa50 }, 720 { 0x00008178, 0x00000100 }, 721 { 0x0000817c, 0x00000000 }, 722 { 0x000081c0, 0x00000000 }, 723 { 0x000081d0, 0x0000320a }, 724 { 0x000081ec, 0x00000000 }, 725 { 0x000081f0, 0x00000000 }, 726 { 0x000081f4, 0x00000000 }, 727 { 0x000081f8, 0x00000000 }, 728 { 0x000081fc, 0x00000000 }, 729 { 0x00008200, 0x00000000 }, 730 { 0x00008204, 0x00000000 }, 731 { 0x00008208, 0x00000000 }, 732 { 0x0000820c, 0x00000000 }, 733 { 0x00008210, 0x00000000 }, 734 { 0x00008214, 0x00000000 }, 735 { 0x00008218, 0x00000000 }, 736 { 0x0000821c, 0x00000000 }, 737 { 0x00008220, 0x00000000 }, 738 { 0x00008224, 0x00000000 }, 739 { 0x00008228, 0x00000000 }, 740 { 0x0000822c, 0x00000000 }, 741 { 0x00008230, 0x00000000 }, 742 { 0x00008234, 0x00000000 }, 743 { 0x00008238, 0x00000000 }, 744 { 0x0000823c, 0x00000000 }, 745 { 0x00008240, 0x00100000 }, 746 { 0x00008244, 0x0010f400 }, 747 { 0x00008248, 0x00000100 }, 748 { 0x0000824c, 0x0001e800 }, 749 { 0x00008250, 0x00000000 }, 750 { 0x00008254, 0x00000000 }, 751 { 0x00008258, 0x00000000 }, 752 { 0x0000825c, 0x400000ff }, 753 { 0x00008260, 0x00080922 }, 754 { 0x00008264, 0x88a00010 }, 755 { 0x00008270, 0x00000000 }, 756 { 0x00008274, 0x40000000 }, 757 { 0x00008278, 0x003e4180 }, 758 { 0x0000827c, 0x00000000 }, 759 { 0x00008284, 0x0000002c }, 760 { 0x00008288, 0x0000002c }, 761 { 0x0000828c, 0x00000000 }, 762 { 0x00008294, 0x00000000 }, 763 { 0x00008298, 0x00000000 }, 764 { 0x0000829c, 0x00000000 }, 765 { 0x00008300, 0x00000040 }, 766 { 0x00008314, 0x00000000 }, 767 { 0x00008328, 0x00000000 }, 768 { 0x0000832c, 0x00000001 }, 769 { 0x00008330, 0x00000302 }, 770 { 0x00008334, 0x00000e00 }, 771 { 0x00008338, 0x00ff0000 }, 772 { 0x0000833c, 0x00000000 }, 773 { 0x00008340, 0x00010380 }, 774 { 0x00008344, 0x00481083 }, /**< Note: disabled ADHOC_MCAST_KEYID feature */ 775 { 0x00007010, 0x00000030 }, 776 { 0x00007034, 0x00000002 }, 777 { 0x00007038, 0x000004c2 }, 778 { 0x00007800, 0x00140000 }, 779 { 0x00007804, 0x0e4548d8 }, 780 { 0x00007808, 0x54214514 }, 781 { 0x0000780c, 0x02025820 }, 782 { 0x00007810, 0x71c0d388 }, 783 { 0x00007814, 0x924934a8 }, 784 { 0x0000781c, 0x00000000 }, 785 { 0x00007828, 0x66964300 }, 786 { 0x0000782c, 0x8db6d961 }, 787 { 0x00007830, 0x8db6d96c }, 788 { 0x00007834, 0x6140008b }, 789 { 0x0000783c, 0x72ee0a72 }, 790 { 0x00007840, 0xbbfffffc }, 791 { 0x00007844, 0x000c0db6 }, 792 { 0x00007848, 0x6db6246f }, 793 { 0x0000784c, 0x6d9b66db }, 794 { 0x00007850, 0x6d8c6dba }, 795 { 0x00007854, 0x00040000 }, 796 { 0x00007858, 0xdb003012 }, 797 { 0x0000785c, 0x04924914 }, 798 { 0x00007860, 0x21084210 }, 799 { 0x00007864, 0xf7d7ffde }, 800 { 0x00007868, 0xc2034080 }, 801 { 0x00007870, 0x10142c00 }, 802 { 0x00009808, 0x00000000 }, 803 { 0x0000980c, 0xafe68e30 }, 804 { 0x00009810, 0xfd14e000 }, 805 { 0x00009814, 0x9c0a9f6b }, 806 { 0x0000981c, 0x00000000 }, 807 { 0x0000982c, 0x0000a000 }, 808 { 0x00009830, 0x00000000 }, 809 { 0x0000983c, 0x00200400 }, 810 { 0x0000984c, 0x0040233c }, 811 { 0x00009854, 0x00000044 }, 812 { 0x00009900, 0x00000000 }, 813 { 0x00009904, 0x00000000 }, 814 { 0x00009908, 0x00000000 }, 815 { 0x0000990c, 0x00000000 }, 816 { 0x0000991c, 0x10000fff }, 817 { 0x00009920, 0x04900000 }, 818 { 0x00009928, 0x00000001 }, 819 { 0x0000992c, 0x00000004 }, 820 { 0x00009934, 0x1e1f2022 }, 821 { 0x00009938, 0x0a0b0c0d }, 822 { 0x0000993c, 0x00000000 }, 823 { 0x00009940, 0x14750604 }, 824 { 0x00009948, 0x9280c00a }, 825 { 0x0000994c, 0x00020028 }, 826 { 0x00009954, 0x5f3ca3de }, 827 { 0x00009958, 0x0108ecff }, 828 { 0x00009968, 0x000003ce }, 829 { 0x00009970, 0x192bb514 }, 830 { 0x00009974, 0x00000000 }, 831 { 0x00009978, 0x00000001 }, 832 { 0x0000997c, 0x00000000 }, 833 { 0x00009980, 0x00000000 }, 834 { 0x00009984, 0x00000000 }, 835 { 0x00009988, 0x00000000 }, 836 { 0x0000998c, 0x00000000 }, 837 { 0x00009990, 0x00000000 }, 838 { 0x00009994, 0x00000000 }, 839 { 0x00009998, 0x00000000 }, 840 { 0x0000999c, 0x00000000 }, 841 { 0x000099a0, 0x00000000 }, 842 { 0x000099a4, 0x00000001 }, 843 { 0x000099a8, 0x201fff00 }, 844 { 0x000099ac, 0x2def0400 }, 845 { 0x000099b0, 0x03051000 }, 846 { 0x000099b4, 0x00000820 }, 847 { 0x000099dc, 0x00000000 }, 848 { 0x000099e0, 0x00000000 }, 849 { 0x000099e4, 0xaaaaaaaa }, 850 { 0x000099e8, 0x3c466478 }, 851 { 0x000099ec, 0x0cc80caa }, 852 { 0x000099f0, 0x00000000 }, 853 { 0x0000a208, 0x803e68c8 }, 854 { 0x0000a210, 0x4080a333 }, 855 { 0x0000a214, 0x00206c10 }, 856 { 0x0000a218, 0x009c4060 }, 857 { 0x0000a220, 0x01834061 }, 858 { 0x0000a224, 0x00000400 }, 859 { 0x0000a228, 0x000003b5 }, 860 { 0x0000a22c, 0x00000000 }, 861 { 0x0000a234, 0x20202020 }, 862 { 0x0000a238, 0x20202020 }, 863 { 0x0000a244, 0x00000000 }, 864 { 0x0000a248, 0xfffffffc }, 865 { 0x0000a24c, 0x00000000 }, 866 { 0x0000a254, 0x00000000 }, 867 { 0x0000a258, 0x0ccb5380 }, 868 { 0x0000a25c, 0x15151501 }, 869 { 0x0000a260, 0xdfa90f01 }, 870 { 0x0000a268, 0x00000000 }, 871 { 0x0000a26c, 0x0ebae9e6 }, 872 { 0x0000a388, 0x0c000000 }, 873 { 0x0000a38c, 0x20202020 }, 874 { 0x0000a390, 0x20202020 }, 875 { 0x0000a39c, 0x00000001 }, 876 { 0x0000a3a0, 0x00000000 }, 877 { 0x0000a3a4, 0x00000000 }, 878 { 0x0000a3a8, 0x00000000 }, 879 { 0x0000a3ac, 0x00000000 }, 880 { 0x0000a3b0, 0x00000000 }, 881 { 0x0000a3b4, 0x00000000 }, 882 { 0x0000a3b8, 0x00000000 }, 883 { 0x0000a3bc, 0x00000000 }, 884 { 0x0000a3c0, 0x00000000 }, 885 { 0x0000a3c4, 0x00000000 }, 886 { 0x0000a3cc, 0x20202020 }, 887 { 0x0000a3d0, 0x20202020 }, 888 { 0x0000a3d4, 0x20202020 }, 889 { 0x0000a3e4, 0x00000000 }, 890 { 0x0000a3e8, 0x18c43433 }, 891 { 0x0000a3ec, 0x00f70081 }, 892 { 0x0000a3f0, 0x01036a2f }, 893 { 0x0000a3f4, 0x00000000 }, 894 { 0x0000d270, 0x0d820820 }, 895 { 0x0000d35c, 0x07ffffef }, 896 { 0x0000d360, 0x0fffffe7 }, 897 { 0x0000d364, 0x17ffffe5 }, 898 { 0x0000d368, 0x1fffffe4 }, 899 { 0x0000d36c, 0x37ffffe3 }, 900 { 0x0000d370, 0x3fffffe3 }, 901 { 0x0000d374, 0x57ffffe3 }, 902 { 0x0000d378, 0x5fffffe2 }, 903 { 0x0000d37c, 0x7fffffe2 }, 904 { 0x0000d380, 0x7f3c7bba }, 905 { 0x0000d384, 0xf3307ff0 } 906 906 }; 907 907 -
uspace/drv/nic/rtl8139/defs.c
r47b2d7e3 r1433ecda 29 29 #include "defs.h" 30 30 31 const char *model_names[RTL8139_VER_COUNT] = {31 const char *model_names[RTL8139_VER_COUNT] = { 32 32 "RTL8139", 33 33 "RTL8139A", … … 46 46 47 47 const struct rtl8139_hwver_map rtl8139_versions[RTL8139_VER_COUNT + 1] = { 48 { HWVER(1, 1,0,0,0,0,0), RTL8139 },49 { HWVER(1, 1,1,0,0,0,0), RTL8139A },50 { HWVER(1, 1,1,0,0,1,0), RTL8139A_G },51 { HWVER(1, 1,1,1,0,0,0), RTL8139B },52 { HWVER(1, 1,1,1,1,0,0), RTL8130 },53 { HWVER(1, 1,1,0,1,0,0), RTL8139C },54 { HWVER(1, 1,1,1,0,1,0), RTL8100 },55 { HWVER(1, 1,1,0,1,0,1), RTL8139D },56 { HWVER(1, 1,1,0,1,1,0), RTL8139Cp },57 { HWVER(1, 1,1,0,1,1,1), RTL8101 },48 { HWVER(1, 1, 0, 0, 0, 0, 0), RTL8139 }, 49 { HWVER(1, 1, 1, 0, 0, 0, 0), RTL8139A }, 50 { HWVER(1, 1, 1, 0, 0, 1, 0), RTL8139A_G }, 51 { HWVER(1, 1, 1, 1, 0, 0, 0), RTL8139B }, 52 { HWVER(1, 1, 1, 1, 1, 0, 0), RTL8130 }, 53 { HWVER(1, 1, 1, 0, 1, 0, 0), RTL8139C }, 54 { HWVER(1, 1, 1, 1, 0, 1, 0), RTL8100 }, 55 { HWVER(1, 1, 1, 0, 1, 0, 1), RTL8139D }, 56 { HWVER(1, 1, 1, 0, 1, 1, 0), RTL8139Cp }, 57 { HWVER(1, 1, 1, 0, 1, 1, 1), RTL8101 }, 58 58 /* End value */ 59 { 0, RTL8139_VER_COUNT }59 { 0, RTL8139_VER_COUNT } 60 60 }; 61 61 -
uspace/drv/nic/rtl8139/general.c
r47b2d7e3 r1433ecda 51 51 * @return NULL if the error occures, dest if succeed 52 52 */ 53 void *rtl8139_memcpy_wrapped(void *dest, const void *src, size_t src_offset,53 void *rtl8139_memcpy_wrapped(void *dest, const void *src, size_t src_offset, 54 54 size_t src_size, size_t data_size) 55 55 { … … 83 83 * @return EOK if succeed, error code otherwise 84 84 */ 85 errno_t rtl8139_timer_act_init(rtl8139_timer_act_t * ta, uint32_t timer_freq,85 errno_t rtl8139_timer_act_init(rtl8139_timer_act_t *ta, uint32_t timer_freq, 86 86 const struct timeval *time) 87 87 { … … 124 124 * @return Nonzero if whole period expired, zero if part of period expired 125 125 */ 126 int rtl8139_timer_act_step(rtl8139_timer_act_t * ta, uint32_t *new_reg)126 int rtl8139_timer_act_step(rtl8139_timer_act_t *ta, uint32_t *new_reg) 127 127 { 128 128 uint32_t next_val = 0; -
uspace/drv/nic/rtl8169/defs.h
r47b2d7e3 r1433ecda 202 202 TSD_NCC_SHIFT = 24, /**< Collision Count - bit shift */ 203 203 TSD_NCC_SIZE = 4, /**< Collision Count - bit size */ 204 TSD_NCC_MASK = (1 << 4) -1, /**< Collision Count - bit size */204 TSD_NCC_MASK = (1 << 4) - 1, /**< Collision Count - bit size */ 205 205 TSD_ERTXTH_SHIFT = 16, /**< Early Tx Threshold - bit shift */ 206 206 TSD_ERTXTH_SIZE = 6, /**< Early Tx Treshold - bit size */ -
uspace/drv/platform/amdm37x/main.c
r47b2d7e3 r1433ecda 132 132 133 133 static const amdm37x_fun_t amdm37x_funcs[] = { 134 {135 .name = "ohci",136 .id = "usb/host=ohci",137 .score = 90,138 .hw_resources = { .resources = ohci_res, .count = ARRAY_SIZE(ohci_res) }139 },140 {141 .name = "ehci",142 .id = "usb/host=ehci",143 .score = 90,144 .hw_resources = { .resources = ehci_res, .count = ARRAY_SIZE(ehci_res) }145 },146 {147 .name = "fb",148 .id = "amdm37x&dispc",149 .score = 90,150 .hw_resources = { .resources = disp_res, .count = ARRAY_SIZE(disp_res) }151 },134 { 135 .name = "ohci", 136 .id = "usb/host=ohci", 137 .score = 90, 138 .hw_resources = { .resources = ohci_res, .count = ARRAY_SIZE(ohci_res) } 139 }, 140 { 141 .name = "ehci", 142 .id = "usb/host=ehci", 143 .score = 90, 144 .hw_resources = { .resources = ehci_res, .count = ARRAY_SIZE(ehci_res) } 145 }, 146 { 147 .name = "fb", 148 .id = "amdm37x&dispc", 149 .score = 90, 150 .hw_resources = { .resources = disp_res, .count = ARRAY_SIZE(disp_res) } 151 }, 152 152 }; 153 153 … … 261 261 }; 262 262 263 static hw_resource_list_t * amdm37x_get_resources(ddf_fun_t *fnode)263 static hw_resource_list_t *amdm37x_get_resources(ddf_fun_t *fnode) 264 264 { 265 265 amdm37x_fun_t *fun = ddf_fun_data_get(fnode); -
uspace/drv/platform/amdm37x/prm/clock_control.h
r47b2d7e3 r1433ecda 64 64 static inline unsigned sys_clk_freq_kHz(unsigned reg_val) 65 65 { 66 switch(reg_val) 67 { 68 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_12M: return 12000; 69 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_13M: return 13000; 70 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_19_2M: return 19200; 71 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_26M: return 26000; 72 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_38_4M: return 38400; 73 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_16_8M: return 16800; 66 switch (reg_val) { 67 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_12M: 68 return 12000; 69 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_13M: 70 return 13000; 71 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_19_2M: 72 return 19200; 73 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_26M: 74 return 26000; 75 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_38_4M: 76 return 38400; 77 case CLOCK_CONTROL_PRM_CLKSEL_SYS_CLKIN_16_8M: 78 return 16800; 74 79 } 75 80 return 0; -
uspace/drv/platform/mac/mac.c
r47b2d7e3 r1433ecda 235 235 236 236 static pio_window_ops_t fun_pio_window_ops = { 237 .get_pio_window = &mac_get_pio_window237 .get_pio_window = &mac_get_pio_window 238 238 }; 239 239 240 240 static hw_res_ops_t fun_hw_res_ops = { 241 .get_resource_list = &mac_get_resources,241 .get_resource_list = &mac_get_resources, 242 242 .enable_interrupt = &mac_enable_interrupt 243 243 }; -
uspace/drv/root/virt/virt.c
r47b2d7e3 r1433ecda 213 213 virt_fun_t *rvfun = list_get_instance( 214 214 list_first(&virt->functions), virt_fun_t, 215 dev_link);215 dev_link); 216 216 217 217 rc = virt_fun_remove(rvfun);
Note:
See TracChangeset
for help on using the changeset viewer.
