Changeset ae7d03c in mainline for uspace/drv
- Timestamp:
- 2018-05-10T13:39:19Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e8975278
- Parents:
- b277bef
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-10 07:38:12)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-10 13:39:19)
- Location:
- uspace/drv
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/audio/hdaudio/hdactl.c
rb277bef rae7d03c 516 516 hda_reg16_read(&hda->regs->statests)); 517 517 /** 518 519 520 518 * Clear STATESTS bits so they don't generate an interrupt later 519 * when we enable interrupts. 520 */ 521 521 hda_reg16_write(&hda->regs->statests, 0x7f); 522 522 -
uspace/drv/block/ahci/ahci_hw.h
rb277bef rae7d03c 216 216 typedef union { 217 217 struct { 218 /** Indicates the completion status of BIST219 * non-zero value indicates a failure.220 */221 unsigned int cc : 4;222 /** Reserved. */223 unsigned int reserved : 2;224 /** Software sets this bit to 1 to invoke BIST,225 * the HBA clears this bit to 0 when BIST is complete.226 */227 unsigned int sb : 1;228 /** BIST capable. */229 unsigned int bc : 1;218 /** Indicates the completion status of BIST 219 * non-zero value indicates a failure. 220 */ 221 unsigned int cc : 4; 222 /** Reserved. */ 223 unsigned int reserved : 2; 224 /** Software sets this bit to 1 to invoke BIST, 225 * the HBA clears this bit to 0 when BIST is complete. 226 */ 227 unsigned int sb : 1; 228 /** BIST capable. */ 229 unsigned int bc : 1; 230 230 }; 231 231 uint8_t u8; … … 252 252 253 253 /** AHCI PCI register Subsystem Identifiers. */ 254 typedef struct 255 { 254 typedef struct { 256 255 /** Sub system vendor identifier. */ 257 256 uint8_t ssvid; … … 261 260 262 261 /** AHCI PCI registers Expansion ROM Base Address. */ 263 typedef struct 264 { 262 typedef struct { 265 263 /** Indicates the base address of the HBA expansion ROM. */ 266 264 uint32_t u32; … … 268 266 269 267 /** AHCI PCI register Capabilities Pointer. */ 270 typedef struct 271 { 268 typedef struct { 272 269 /** Indicates the first capability pointer offset. */ 273 270 uint8_t u8; … … 275 272 276 273 /** AHCI PCI register Interrupt Information. */ 277 typedef struct 278 { 274 typedef struct { 279 275 /* Software written value to indicate which interrupt vector 280 276 * the interrupt is connected to. … … 286 282 287 283 /** AHCI PCI register Min Grant (Optional). */ 288 typedef struct 289 { 284 typedef struct { 290 285 /** Indicates the minimum grant time that the device 291 286 * wishes grant asserted. … … 295 290 296 291 /** AHCI PCI register Max Latency (Optional). */ 297 typedef struct 298 { 292 typedef struct { 299 293 /** Indicates the maximum latency that the device can withstand. */ 300 294 uint8_t u8; … … 431 425 432 426 /** AHCI Memory register Command completion coalescing ports. */ 433 typedef struct 434 { 427 typedef struct { 435 428 /** If a bit is set to 1, the corresponding port is 436 429 * part of the command completion coalescing feature. … … 440 433 441 434 /** AHCI Memory register Enclosure management location. */ 442 typedef struct 443 { 435 typedef struct { 444 436 /** Size of the transmit message buffer area in dwords. */ 445 437 uint16_t sz; … … 525 517 526 518 /** AHCI Memory register Generic Host Control. */ 527 typedef struct 528 { 519 typedef struct { 529 520 /** Host Capabilities */ 530 521 uint32_t cap; … … 942 933 943 934 /** AHCI Memory register Port. */ 944 typedef volatile struct 945 { 935 typedef volatile struct { 946 936 /** Port x Command List Base Address. */ 947 937 uint32_t pxclb; … … 1010 1000 /** Physical Region Descriptor Byte Count. */ 1011 1001 uint32_t bytesprocessed; 1012 1002 /** Command Table Descriptor Base Address. */ 1013 1003 uint32_t cmdtable; 1014 1004 /** Command Table Descriptor Base Address Upper 32-bits. */ -
uspace/drv/block/ddisk/ddisk.c
rb277bef rae7d03c 495 495 496 496 /* 497 498 497 * Register IRQ handler. 498 */ 499 499 ddisk_regs_t *res_phys = (ddisk_regs_t *) res.base; 500 500 ddisk_irq_pio_ranges[0].base = res.base; -
uspace/drv/bus/pci/pciintel/pci.c
rb277bef rae7d03c 267 267 * architectures do not support shorter PIO reads offset from 268 268 * this register. 269 269 */ 270 270 val = uint32_t_le2host(pio_read_32(bus->conf_data_reg)); 271 271 } else { … … 301 301 * Some architectures do not support shorter PIO writes offset from this 302 302 * register. 303 303 */ 304 304 305 305 if (len < 4) { 306 306 /* 307 308 309 307 * We have fewer than full 32-bits, so we need to read the 308 * missing bits first. 309 */ 310 310 if (bus->conf_addr_reg) { 311 311 pio_write_32(bus->conf_addr_reg, … … 534 534 535 535 /* 536 537 536 * Unimplemented BARs read back as all 0's. 537 */ 538 538 if (!bar) 539 539 return addr + (addrw64 ? 8 : 4); -
uspace/drv/bus/usb/xhci/hw_struct/trb.h
rb277bef rae7d03c 80 80 /* 81 81 * Reserved: 24-31 82 */82 */ 83 83 84 84 /* -
uspace/drv/nic/ar9271/ar9271.c
rb277bef rae7d03c 801 801 * This should initiate creating confirmation message in 802 802 * device side buffer which we will check in htc_check_ready function. 803 */803 */ 804 804 usb_pipe_t *ctrl_pipe = usb_device_get_default_pipe(usb_device); 805 805 errno_t rc = usb_control_request_set(ctrl_pipe, -
uspace/drv/nic/rtl8139/driver.c
rb277bef rae7d03c 94 94 95 95 #ifndef RXBUF_SIZE_FLAGS 96 96 /** Flags for receiver buffer - 16kB default */ 97 97 #define RXBUF_SIZE_FLAGS RTL8139_RXFLAGS_SIZE_16 98 98 #endif -
uspace/drv/nic/rtl8169/driver.c
rb277bef rae7d03c 1205 1205 1206 1206 /** Main function of RTL8169 driver 1207 *1207 * 1208 1208 * Just initialize the driver structures and 1209 1209 * put it into the device drivers interface -
uspace/drv/platform/malta/malta.c
rb277bef rae7d03c 233 233 234 234 /* 235 236 237 238 235 * We need to disable byte swapping of the outgoing and incoming 236 * PCI data, because the PCI driver assumes no byte swapping behind 237 * the scenes and takes care of it itself. 238 */ 239 239 ret = pio_enable((void *) GT_BASE, GT_SIZE, (void **) >); 240 240 if (ret != EOK)
Note:
See TracChangeset
for help on using the changeset viewer.