summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
29 hourskernel: Ensure mutually exclusive console accessIan Moffett
If multiple processes try to write to the console, a race condition of sorts may occur. Similarly, if multiple processes try to read from the console and contend with the console input buffer. One process may steal keys from the other. Prevent this by implementing a mutex within the console descriptor. Each time a process reads or writes the console, it attaches itself. Any other processes attempting to read or write the console while another is attached will be yielded to the scheduler until the resource is free. Signed-off-by: Ian Moffett <ian@osmora.org>
31 hourskernel: driver: Assign names to all driversIan Moffett
Assign a name to each driver through the DRIVER_EXPORT() or DRIVER_DEFER() macros. This can be used for blacklisting driver startups. Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: console: Add 'show_curs' feat flagIan Moffett
Add 'show_curs' feat flag to enable/disable whether or not the cursor should be drawn Signed-off-by: Ian Moffett <ian@osmora.org>
2 dayskernel: console: Remove extra newlineIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: console: Introduce /ctl/console/featmainIan Moffett
Introduce a ctlfs entry for configuring various console features such as the ability to parse ANSI escape codes. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskernel: 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>
3 dayskernel: cons_ansi: Use `scr' var for console callsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 daysdev: uacpi: Always include machine/intr.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: cons: Handle horizontal tabs ('\t')Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
10 dayskernel: Add SMBIOS/DMI supportIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 dayskernel: e1000: Reset the controller before initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 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>
13 dayskernel: e1000: Grant NIC PCI MMIO/DMA capabilitiesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 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>
13 dayskernel: phy: Add initial E1000 sourcesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-16kernel: rtl: Fix up includes and remove "TODO"Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-16kernel: rtl: Expose NIC properly through if_var.hIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-15kernel: rtl: Remove TODO comment (completed)Ian 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-14kernel: ahci: Wait until ready before any I/OIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-14kernel: ahci: Don't zero allocated PAs anymoreIan Moffett
This is no longer needed as the Hyra PMM now does this automatically by default. 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-11kernel: pci: Add 'cam_hook' structure for PCI I/OIan Moffett
This change improves flexibility and allows for easy future integration of the PCI Express Enhanced Configuration Access Mechanism (ECAM) Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-11kernel: ahci: Return length in sata_dev_rw()Ian 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-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-09kernel: cons: Invert console cursor colorIan Moffett
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-07kernel: rtl8139: Defer RTL8139 initializationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-07kernel: nvme: Defer NVMe initializationIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-06kernel: xhci: Allocate n bytes for scratchpadIan Moffett
Allocate in bytes rather than pages to keep things simple and fix broken logic. 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: Handle ASCII_NULIan 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-04kernel: xhci: Fix scratchpad page countIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-03kernel: video: Add /ctl/fb0/attrIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-06-03kernel: device: Harden cdev mmap() bounds checksIan 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-06-01kernel: xhci: Ensure of PCI bus mastering and MMIOIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-29kernel: uacpi: Implement kernel nsec funcIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-29kernel: ahci: Defer ahci_init()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: cons: Fix newline caused by excessive '\b'Ian Moffett
Before this commit, if you were to write out too many backspace characters, it would result in an integer underflow for the scr->curs_col and scr->ch_col state resulting in the console logic assuming the cursor has gone too far off the screen which would cause behavior similar to as if you wrote out a line-feed character. Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: ahci: Add ahci_dev_bsize()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: ahci: Add ahci_dev_write()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: ahci: Create devfs entry as block deviceIan 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-26kernel: ahci: Do not fake success on empty portIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
2025-05-26kernel: ahci: Add ahci_get_dev() for drive lookupsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>