Changeset 8e9becf6 in mainline for uspace/drv/ehci-hcd/pci.h
- Timestamp:
- 2011-03-08T20:00:47Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 021351c
- Parents:
- 0588062e (diff), d2fc1c2 (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. - File:
-
- 1 moved
-
uspace/drv/ehci-hcd/pci.h (moved) (moved from uspace/lib/usb/src/hcdhubd_private.h ) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/ehci-hcd/pci.h
r0588062e r8e9becf6 1 1 /* 2 * Copyright (c) 201 0Vojtech Horky2 * Copyright (c) 2011 Vojtech Horky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup libusb29 /** @addtogroup drvusbehci 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @brief Common definitions for both HC driver and hubdriver.33 * PCI related functions needed by EHCI driver. 34 34 */ 35 #ifndef LIBUSB_HCDHUBD_PRIVATE_H_36 #define LIBUSB_HCDHUBD_PRIVATE_H_35 #ifndef DRV_EHCI_PCI_H 36 #define DRV_EHCI_PCI_H 37 37 38 #define USB_HUB_DEVICE_NAME "usbhub" 39 #define USB_KBD_DEVICE_NAME "hid" 38 #include <ddf/driver.h> 40 39 41 extern link_t hc_list; 42 extern usb_hc_driver_t *hc_driver; 43 44 extern usbhc_iface_t usbhc_interface; 45 46 usb_address_t usb_get_address_by_handle(devman_handle_t); 47 int usb_add_hc_device(device_t *); 48 49 /** lowest allowed usb address */ 50 extern int usb_lowest_address; 51 52 /** highest allowed usb address */ 53 extern int usb_highest_address; 54 55 /** 56 * @brief initialize address list of given hcd 57 * 58 * This function should be used only for hcd initialization. 59 * It creates interval list of free addresses, thus it is initialized as 60 * list with one interval with whole address space. Using an address shrinks 61 * the interval, freeing an address extends an interval or creates a 62 * new one. 63 * 64 * @param hcd 65 * @return 66 */ 67 void usb_create_address_list(usb_hc_device_t * hcd); 68 69 70 71 72 40 int pci_get_my_registers(ddf_dev_t *, uintptr_t *, size_t *, int *); 41 int pci_enable_interrupts(ddf_dev_t *); 42 int pci_disable_legacy(ddf_dev_t *); 73 43 74 44 #endif … … 76 46 * @} 77 47 */ 48
Note:
See TracChangeset
for help on using the changeset viewer.
