summaryrefslogtreecommitdiff
path: root/sys/include/dev
AgeCommit message (Collapse)Author
47 hourskernel: console: Introduce cons_screen featuresIan Moffett
Introduce a 'feat' field in the cons_screen structure to allow certain console features to be turned on or off. Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: Add SMBIOS/DMI supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: e1000: Read MAC address into `netif'Ian Moffett
This commit implements EEPROM reading logic as well as some code to read the ethernet address into a `netif' structure. Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: e1000: Use raw register VAP offsetsIan Moffett
The E1000 may add padding in-between registers and for the sake of simplicity, we will deal with raw offsets instead of a silly structure. Signed-off-by: Ian Moffett <ian@osmora.org>
12 dayskernel: phy: Add initial E1000 sourcesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-15kernel: rtl: Implement packet TXIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-13kernel: cons: Clear entire screen on demandIan Moffett
- Flush the entire output buffer - Wipe the whole screen with "bg" - The entire console will now be cleared when a "\033[H" sequence is encountered Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-12kernel: pci: Add support for PCI ExpressIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-10kernel: ahci: Fix issue of undetectable devicesIan Moffett
- Only check PxSCTL.SET within the port reset logic - Do not create device file for ATAPI devices (yet) Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-10kernel: ahci: Improve port reset logicIan Moffett
- Set PxCMD.SUD if the HBA supports staggered spin-up to ensure the device will be detectable. - Wait for the device link to be established - Detect and log SATA link speed Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-10kernel: cons: Make ANSI_BLUE a darker shadeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-09kernel: cons: Add ANSI cursor pos reset sequenceIan Moffett
- Add support for the "\033[H" ANSI escape sequence to reset the cursor to the 'home' position Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-07kernel: phy: Rename rtl8139 driver to rt81xxIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-05kernel: cons: Add initial ANSI escape seq implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-05kernel: cons: Add color attribute helpersIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-02kernel: fbdev: Add /dev/fb0 char deviceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-29kernel/amd64: hpet: Add hpet_time_nsec()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: ahci: Detect max SATA sector countIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-22kernel: Optimize console & loggingQuinn Stephens
* Modified draw loops to use `fbdev_get_index()` less often. * Created `cons_fast_putch()`, then used it to implement `cons_putch()` and `cons_putstr()`. This way, when printing an entire string, the lock acquire/release and cursor hide/show will only happen once, instead of once per character. * Modified `syslog_write()` to use `cons_putstr()`. Signed-off-by: Quinn Stephens <quinn@osmora.org> Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-22kernel: ahci: Create a DCDR per HBA deviceIan Moffett
Optimize reading of logical blocks within SATA drives by giving each device descriptor a drive cache descriptor ring. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-21kernel: xhci: Add runtime register offset definesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-19kernel/amd64: Deprecate intr_alloc_vector()Ian Moffett
Replace intr_alloc_vector() with a cleaner and more machine independent intr_register() Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-19kernel: acpi: Add acpi_sleep()Ian Moffett
Introduce function for calling ACPI \\_S<n> objects via uACPI Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-17kernel: acpi: Add uACPI portIan Moffett
See https://github.com/uACPI/uACPI/ Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-17kernel: pci: Add pci_add_device()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-17kernel: pci: Add segment fieldIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-17kernel: acpi: Add acpi_rsdp()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-16kernel: cons: Add lock to console bufferIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-14kernel: ahci: Add /ctl/sdx/bsize control fileIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-14kernel: ahci: Include sys/device.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-10kernel: ahci: Store major in HBA descriptorIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-10kernel: ahci: Handle AHCI interface/HBA errorsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-09kernel: ahci: Define ATA identity structureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-09kernel: ahci: Detect staggered spin upIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-09kernel: ahci: Add command table + PRD definitionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-08kernel: ahci: Initialize each HBA portIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-08kernel: ahci: Split CLB/FB into lower/upper bitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-08kernel: ahci: Add basic AHCI constantsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-08kernel: achi: Define command header and H2D FISIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-07kernel: ahci: Implement initial HBA port logicIan Moffett
- Implement logic to scan the HBA for ports - Implement logic to stop HBA ports - Add ahci_init_port() stub Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-05kernel: rt8139: Autoload 93C46 + read MAC addressIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-05kernel: xhci: Workaround Dell USBLEGSUP quirkIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-18kernel: cons: Add console buffer frameworkIan Moffett
Major console improvements - Add console buffer framework for managing console input/output in a more smooth and elegant manner - Fix cursor bugs Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-18kernel: video: Add bpp field to fbdevIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-17kernel: acpi: Add acpi_oemid()Ian Moffett
acpi_oemid() can be useful for knowing the vendor of the current machine. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-04-12kernel: rt8139: Add initial implIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-22kernel: cons: Add lock around root consoleIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-22kernel: dev: Add /dev/consoleIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20kernel: ahci: Add AHCI spinwait timeoutIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-02-20kernel: ahci: __BIT() -> BIT()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>