|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include <type.h>Go to the source code of this file.
Data Structures | |
| struct | ioforge_device |
Macros | |
| #define | IOFORGE_SERVICE_NAME_MAX_LEN 64 |
| #define | IOFORGE_F_ENABLE 1 |
| #define | IOFORGE_F_VIRTIO (1 << 31) |
Enumerations | |
| enum | IoForgeType : uint8_t { IOFORGE_ROOT = 0xFF , IOFORGE_PCI = 0xF1 , IOFORGE_PCI_BUS = 0xF2 , IOFORGE_ACPI = 0xAC , IOFORGE_USB_DEVICE = 0xA2 , IOFORGE_NIC = 0xC3 , IOFORGE_USB_CONTROLLER = 0xE3 , IOFORGE_VIRTIO = 0xD3 , IOFORGE_BLOCK = 0xEE } |
| #define IOFORGE_F_VIRTIO (1 << 31) |
Definition at line 23 of file ioforge.h.
Referenced by for_each_virtio_device(), and vxPCIGatheringBusInfo().
| enum IoForgeType : uint8_t |
| void * ioforge_alloc | ( | size_t | size | ) |
References size.
Referenced by IOForge::IOUtils::alloc().
| void ioforge_attach | ( | struct ioforge_device * | parent, |
| struct ioforge_device * | child ) |
References parent.
Referenced by __attribute__(), __attribute__(), __attribute__(), for_each_virtio_device(), INIT(), INIT(), AHCIModule::probe(), EHCIModule::probe(), and vxPCIGatheringBusInfo().
| bool ioforge_can_contain_pci | ( | IoForgeType | type | ) |
Definition at line 149 of file ioforge.c.
References IOFORGE_ACPI, IOFORGE_PCI, IOFORGE_PCI_BUS, IOFORGE_ROOT, and type.
References size.
Referenced by create_netbuff(), and IOForge::IOUtils::DMAAlloc().
| void ioforge_dma_free | ( | void * | paddr, |
| void * | vaddr, | ||
| size_t | size ) |
References size.
Referenced by IOForge::IOUtils::DMAFree(), and free_netbuff().
| struct ioforge_device * ioforge_find_by_name | ( | struct ioforge_device * | root, |
| const char * | name ) |
| struct ioforge_pci_device * ioforge_find_pci_device | ( | struct ioforge_device * | node, |
| uint16_t | vendor_id, | ||
| uint16_t | device_id ) |
Referenced by IOforgePCI::findDevice().
| void ioforge_free | ( | void * | ptr, |
| size_t | size ) |
Referenced by IOForge::IOUtils::free().
| struct ioforge_device * ioforge_get_block_devices_root | ( | ) |
Referenced by ATAPIModule::load(), and AHCIModule::probe().
| uint8_t ioforge_get_current_core_id | ( | ) |
Referenced by E1000Module::load().
| struct ioforge_device * ioforge_get_pci_root | ( | ) |
Referenced by IOforgePCI::findDevice(), INIT(), and vxPCIGatheringBusInfo().
| struct ioforge_device * ioforge_get_root | ( | ) |
Referenced by __attribute__(), INIT(), and UsbHid::load().
| uint16_t ioforge_irq_alloc_entry | ( | ) |
Referenced by IOForge::IOUtils::irq_alloc_entry().
| void ioforge_irq_register | ( | uint8_t | n, |
| void * | handler ) |
Referenced by IOForge::IOUtils::irq_register().
Referenced by IOForge::IOUtils::isr_get_vector().
References vector.
Referenced by __attribute__(), and IOForge::IOUtils::isr_map().
| void ioforge_memcpy | ( | void * | dst, |
| void * | src, | ||
| size_t | num ) |
References dst.
Referenced by IOForge::IOUtils::memcpy().
Referenced by EHCIModule::init_controller(), IOForge::IOUtils::memset(), EHCIModule::store_qh(), and EHCIModule::store_qtd().
| void ioforge_sleep | ( | uint32_t | time | ) |
Referenced by AHCIModule::issue_and_wait(), and IOForge::IOUtils::sleep().
| void IOforgeStrCopy | ( | char * | dst, |
| char * | src ) |
References dst.
Referenced by IOForge::IOUtils::strcopy().
| void IOforgeStrnCopy | ( | char * | dst, |
| char * | src, | ||
| size_t | len ) |
Referenced by IOForge::IOUtils::strncopy().
Referenced by E1000Module::load(), EHCIModule::load(), and VirtioGpu::setup().
| void print_device_tree | ( | struct ioforge_device * | node, |
| int | indent ) |
Referenced by __attribute__(), and UsbHid::load().
| void serial2_printf | ( | const char * | fmt, |
| ... ) |
Referenced by __attribute__(), __attribute__(), __attribute__(), __attribute__(), __attribute__(), char_ioctl(), char_read(), create_thread(), create_vfs_cache(), elf_call_init_array_with_table(), elf_prepare_stack(), elf_relocate_dyn(), execve(), ATAPIModule::identify(), INIT(), INIT(), INIT(), E1000Module::initTransmitterX(), iso9660_lookup(), iso9660_readlink(), E1000Module::load(), EHCIModule::load(), HIDKeyboard::load(), mmap_handle_anonymous(), notify_register(), paging_setup(), pool_push(), print_dentry_tree(), EHCIModule::probe(), putc(), putc_utf8(), E1000Module::sendPacket(), stacktrace(), E1000Module::storeBufferToPool(), syscall_arch_prctl(), syscall_brk(), syscall_dispatch(), syscall_exit_group(), syscall_mmap(), syscall_mprotect(), syscall_writev(), and tty_input_handler().
| void serial_printf | ( | const char * | fmt, |
| ... ) |
Referenced by __attribute__(), execve(), serial_clear(), vxPCIGatheringBusInfo(), and vxStartScheduler().