|
XenevaOS
|
#include "xhci.h"#include <stdint.h>#include <_null.h>#include <Mm/kmalloc.h>#include <Hal/x86_64_cpu.h>
Functions | |
| XHCIEndpoint * | XHCISlotGetEP_DCI (XHCISlot *slot, uint8_t endp_num) |
| XHCISlot * | XHCIGetSlotByID (XHCIDevice *dev, uint8_t slot_id) |
| XHCIEndpoint * | XHCISlotGetEP (XHCISlot *slot, uint8_t endp_num) |
| void | XHCIAddSlot (XHCIDevice *dev, XHCISlot *slot) |
| void | XHCISlotRemove (XHCIDevice *dev, uint8_t slot_id) |
| size_t | XHCIGetMaxPacketSize (uint8_t speed) |
| void | XHCISendCmdDefaultEP (XHCISlot *slot, uint32_t param1, uint32_t param2, uint32_t status, uint32_t ctrl) |
| void | XHCISendCmdOtherEP (XHCISlot *slot, uint8_t endp_num, uint32_t param1, uint32_t param2, uint32_t status, uint32_t ctrl) |
| void | XHCISendCmdToHost (XHCIDevice *dev, uint32_t param1, uint32_t param2, uint32_t status, uint32_t ctrl) |
| void | XHCIRingDoorbellHost (XHCIDevice *dev) |
| void | XHCIRingDoorbellSlot (XHCIDevice *dev, uint8_t slot, uint32_t endpoint) |
| int | XHCIPollEvent (XHCIDevice *usb_device, int trb_type) |
| void XHCIAddSlot | ( | XHCIDevice * | dev, |
| XHCISlot * | slot | ||
| ) |
| XHCISlot * XHCIGetSlotByID | ( | XHCIDevice * | dev, |
| uint8_t | slot_id | ||
| ) |
| int XHCIPollEvent | ( | XHCIDevice * | usb_device, |
| int | trb_type | ||
| ) |
| void XHCIRingDoorbellHost | ( | XHCIDevice * | dev | ) |
| void XHCIRingDoorbellSlot | ( | XHCIDevice * | dev, |
| uint8_t | slot, | ||
| uint32_t | endpoint | ||
| ) |
| void XHCISendCmdDefaultEP | ( | XHCISlot * | slot, |
| uint32_t | param1, | ||
| uint32_t | param2, | ||
| uint32_t | status, | ||
| uint32_t | ctrl | ||
| ) |
| void XHCISendCmdOtherEP | ( | XHCISlot * | slot, |
| uint8_t | endp_num, | ||
| uint32_t | param1, | ||
| uint32_t | param2, | ||
| uint32_t | status, | ||
| uint32_t | ctrl | ||
| ) |
| void XHCISendCmdToHost | ( | XHCIDevice * | dev, |
| uint32_t | param1, | ||
| uint32_t | param2, | ||
| uint32_t | status, | ||
| uint32_t | ctrl | ||
| ) |
| XHCIEndpoint * XHCISlotGetEP | ( | XHCISlot * | slot, |
| uint8_t | endp_num | ||
| ) |
| XHCIEndpoint * XHCISlotGetEP_DCI | ( | XHCISlot * | slot, |
| uint8_t | endp_num | ||
| ) |
BSD 2-Clause License
Copyright (c) 2022-2025, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
| void XHCISlotRemove | ( | XHCIDevice * | dev, |
| uint8_t | slot_id | ||
| ) |