Changeset 192565b in mainline for uspace/drv/bus
- Timestamp:
- 2013-05-27T13:18:13Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f2c19b0
- Parents:
- d120133 (diff), c90aed4 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- uspace/drv/bus
- Files:
-
- 10 edited
-
pci/pciintel/pci.c (modified) (2 diffs)
-
pci/pciintel/pci.h (modified) (1 diff)
-
pci/pciintel/pci_regs.h (modified) (1 diff)
-
usb/ohci/hc.c (modified) (1 diff)
-
usb/ohci/hw_struct/endpoint_descriptor.c (modified) (1 diff)
-
usb/ohci/hw_struct/hcca.h (modified) (1 diff)
-
usb/ohci/hw_struct/transfer_descriptor.c (modified) (1 diff)
-
usb/uhci/uhci_batch.c (modified) (1 diff)
-
usb/usbhub/port.c (modified) (1 diff)
-
usb/usbmast/scsi_ms.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/pci/pciintel/pci.c
rd120133 r192565b 327 327 328 328 /* Vendor ID & Device ID, length(incl \0) 22 */ 329 rc = snprintf(match_id_str, ID_MAX_STR_LEN, "pci/ven=%04 x&dev=%04x",330 fun->vendor_id, fun->device_id);329 rc = snprintf(match_id_str, ID_MAX_STR_LEN, "pci/ven=%04" 330 PRIx16 "&dev=%04" PRIx16, fun->vendor_id, fun->device_id); 331 331 if (rc < 0) { 332 332 ddf_msg(LVL_ERROR, "Failed creating match ID str: %s", … … 758 758 fun->vendor_id = pci_conf_read_16(fun, PCI_VENDOR_ID); 759 759 fun->device_id = pci_conf_read_16(fun, PCI_DEVICE_ID); 760 761 /* Explicitly enable PCI bus mastering */ 762 fun->command = pci_conf_read_16(fun, PCI_COMMAND) | 763 PCI_COMMAND_MASTER; 764 pci_conf_write_16(fun, PCI_COMMAND, fun->command); 765 760 766 fun->class_code = pci_conf_read_8(fun, PCI_BASE_CLASS); 761 767 fun->subclass_code = pci_conf_read_8(fun, PCI_SUB_CLASS); -
uspace/drv/bus/pci/pciintel/pci.h
rd120133 r192565b 59 59 int dev; 60 60 int fn; 61 int vendor_id; 62 int device_id; 61 uint16_t vendor_id; 62 uint16_t device_id; 63 uint16_t command; 63 64 uint8_t class_code; 64 65 uint8_t subclass_code; -
uspace/drv/bus/pci/pciintel/pci_regs.h
rd120133 r192565b 95 95 #define PCI_BRIDGE_CTL 0x3E 96 96 97 /* PCI command flags */ 98 #define PCI_COMMAND_IO 0x001 99 #define PCI_COMMAND_MEMORY 0x002 100 #define PCI_COMMAND_MASTER 0x004 101 #define PCI_COMMAND_SPECIAL 0x008 102 #define PCI_COMMAND_INVALIDATE 0x010 103 #define PCI_COMMAND_VGA_PALETTE 0x020 104 #define PCI_COMMAND_PARITY 0x040 105 #define PCI_COMMAND_WAIT 0x080 106 #define PCI_COMMAND_SERR 0x100 107 #define PCI_COMMAND_FAST_BACK 0x200 108 #define PCI_COMMAND_INTX_DISABLE 0x400 109 97 110 #endif 98 111 -
uspace/drv/bus/usb/ohci/hc.c
rd120133 r192565b 602 602 assert(instance); 603 603 604 bzero(&instance->rh, sizeof(instance->rh));604 memset(&instance->rh, 0, sizeof(instance->rh)); 605 605 /* Init queues */ 606 606 const int ret = hc_init_transfer_lists(instance); -
uspace/drv/bus/usb/ohci/hw_struct/endpoint_descriptor.c
rd120133 r192565b 53 53 { 54 54 assert(instance); 55 bzero(instance, sizeof(ed_t));55 memset(instance, 0, sizeof(ed_t)); 56 56 57 57 if (ep == NULL) { -
uspace/drv/bus/usb/ohci/hw_struct/hcca.h
rd120133 r192565b 68 68 hcca_t *hcca = memalign(256, sizeof(hcca_t)); 69 69 if (hcca) 70 bzero(hcca, sizeof(hcca_t));70 memset(hcca, 0, sizeof(hcca_t)); 71 71 return hcca; 72 72 } -
uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c
rd120133 r192565b 58 58 { 59 59 assert(instance); 60 bzero(instance, sizeof(td_t));60 memset(instance, 0, sizeof(td_t)); 61 61 /* Set PID and Error code */ 62 62 OHCI_MEM32_WR(instance->status, -
uspace/drv/bus/usb/uhci/uhci_batch.c
rd120133 r192565b 112 112 CHECK_NULL_DISPOSE_RETURN(uhci_batch->device_buffer, 113 113 "Failed to allocate UHCI buffer.\n"); 114 bzero(uhci_batch->device_buffer, total_size);114 memset(uhci_batch->device_buffer, 0, total_size); 115 115 116 116 uhci_batch->tds = uhci_batch->device_buffer; -
uspace/drv/bus/usb/usbhub/port.c
rd120133 r192565b 143 143 usb_log_debug("Interrupt at port %zu\n", port->port_number); 144 144 145 usb_port_status_t status ;145 usb_port_status_t status = 0; 146 146 const int opResult = get_port_status(port, &status); 147 147 if (opResult != EOK) { -
uspace/drv/bus/usb/usbmast/scsi_ms.c
rd120133 r192565b 167 167 */ 168 168 169 bzero(inq_res, sizeof(*inq_res));169 memset(inq_res, 0, sizeof(*inq_res)); 170 170 171 171 inq_res->device_type = BIT_RANGE_EXTRACT(uint8_t,
Note:
See TracChangeset
for help on using the changeset viewer.
