summaryrefslogtreecommitdiff
path: root/src/sys/include
AgeCommit message (Collapse)Author
45 hourskern: dms: Make DMS block size awareIan Moffett
In order to safely copy between disk and host memory through a programming interface, DMS must be aware of the hardware disk block size Signed-off-by: Ian Moffett <ian@osmora.org>
46 hourskern: ahci: Don't hardcode block sizesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
46 hourskern: Add initial DMS frameworkIan Moffett
DMS stands for Disk Management and Supervision, drivers can register themselves to DMS so that they can be looked up and operated on. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: ahci: Add cmdslot allocation + identifyIan Moffett
Implements command slot allocation, command submission and the ATA identify command Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayslibc: Add SYS_wait syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: proc: Add initial waitpid() syscallIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: proc: Implement process sleeping and wakingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: proc: Use seperate queue link for lookupsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: pci: Parse PCI capability list per deviceIan Moffett
This allows us to see what kind of capabilities the device has (e.g., MSI/MSI-X) Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: cpu: Get processor family IDIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: Identify processor vendor in mdcoreIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: reboot: Add reboot system callIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern/amd64: Add reboot functionIan Moffett
Add a function that reboots the system by attempting the softest method and incrementally becoming forceful if previous methods fail Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: xhci: Allocate and init command ring / CRCRIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: xhci: Initialize the DCBAAP register on initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: vm: Add BYTES_TO_PAGES helper macroIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: xhci: Fixup xHCI opregs field sizesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: usb: Extract HCSPARAMS1 register fieldsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: usb: Poll USBSTS.CNR after resetIan Moffett
The host needs to wait for the controller to be ready by polling the CNR bit as per section 4.2 of the spec Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: xhci: Comment USBCMD bitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: xhci: Implement controller hard resetIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: io: Add initial xHCI skeletonIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: pci: Support lookups via programming ifaceIan Moffett
Introduce programming interface based lookups for devices with different kinds of interfaces Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: pci: Get programming interface from deviceIan Moffett
Some devices are identified by very specific programming interfaces, therefore this is important to have. Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: pci: Use LU types instead of classrev fieldIan Moffett
Instead of using bitfields to say which kind identification we are doing, it is a better idea to just use the lookup type directly as it is more scalable Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: proc: Add process lookups by PIDIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: Bump version up to v0.0.4Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern/amd64: proc: Mark process as exiting on killIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
5 dayskern: proc: Documented rest of structure fieldsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: proc: Add getargv system callIan Moffett
Introduce a getargv system call that allows one to fetch an argument string using an index into the argument vector. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: systm: Add copyoutstr()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: proc: Add initial penv block supportIan Moffett
This commit introduces the initial support for the process environment block and implements argv and argc. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern/amd64: isa: Add i8042 led shift valuesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayslibc: l5: Add spawn() syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: fbdev: 'video:attr' -> 'output.fbdev.attr'Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: cons: Add text mode cursorIan Moffett
Add text mode cursor which is the inversion of the console background color. Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: iotap: Fix typo in commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayslibc: iotap: Add I/O tap syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: iotap: Expose I/O taps to userlandIan Moffett
Expose I/O taps to userland using a tap message interface. An application may construct a tap message to send to the kernel requesting data from a specific tap, if there is data, the buffers will be safely populated, otherwise some error returned. An example is accessing the PS/2 keyboard tap: -- char name[] = "i8042.port.0"; char buf[2] = {0, 0}; struct iotap_msg msg = { .opcode = IOTAP_OPC_READ, .buf = buf, .len = len }; ... /* muxtap() may be used */ ... -- Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: security: Improve scalability of MAC checksIan Moffett
The concept of resource borders is mostly used for resources that can easily be mapped into memory, synced and contain attributes. However, some things (e.g., a network resource, keyboard input, etc) may not be great with raw memory mappings. This commit mitigates this problem. Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern/amd64: isa: Add PS/2 keyboard prototypeIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern/amd64: Reserve 64 vectors for I/O APIC inputsIan Moffett
This commit reserves the first 64 vectors for the I/O APIC input lines. During an IRQ, each handler will be called to see which one handles it. Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern/amd64: Add interrupt registration frameworkIan Moffett
This commit introduces the interrupt registration framework for L5 and accounts for I/O APIC IRQ inputs, and interrupt priority levels encoded within bits 7:4 of the interrupt vector Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern/amd64: ioapic: Add ISA IRQ to GSI conversionIan Moffett
Introduce a helper function to convert legacy ISA IRQ numbers to the GSI numbers assigned to an I/O APIC pin Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern: os: Add I/O tap frameworkIan Moffett
The I/O tap framework provides a way to bypass the typical device filesystem interface for applications where more direct access would be beneficial. Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern: os: Support up to 8 max namespacesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern: vfs: Add write vop to vnodesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern: syscall: Add SYS_open to syscall tableIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskern: filedes: Save the mode in fd_open()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 daysos: vnode: Add refcounts to vnodesIan Moffett
Keep track of how many referencing are on a vnode so one isn't freed early while another object is still using it. Signed-off-by: Ian Moffett <ian@osmora.org>