summaryrefslogtreecommitdiff
path: root/src/sys/include
AgeCommit message (Collapse)Author
12 hourskern: proc: Fix commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
13 hourskern/amd64: proc: md_proc_yield -> md_proc_idleIan Moffett
Improve naming to be less confusing Signed-off-by: Ian Moffett <ian@osmora.org>
14 hourskern/amd64: Introduce kernel threadsIan Moffett
Introduces kernel threads. by using the proc_ktd() function, one can spawn a CPL 0 running thread to the desired code. Signed-off-by: Ian Moffett <ian@osmora.org>
19 hourskern: filedesc: Add close() system callIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
19 hourskern: vfs: Add reclaim callback to vnodeIan Moffett
The reclaim callback simply reclaims any filesystem specific resources used with vnodes back to the operating system. Signed-off-by: Ian Moffett <ian@osmora.org>
20 hourskern: vfs: Make vnode r/w operations offset awareIan Moffett
Adds offset handling to the vnode read and write callbacks. Signed-off-by: Ian Moffett <ian@osmora.org>
20 hourskern: Add SYS_read system call for file I/OIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
20 hourskern: vfs: Add vnode operation for readsIan Moffett
Introduces a read callback wrapper implementation for vnodes to simplify file reading Signed-off-by: Ian Moffett <ian@osmora.org>
36 hourskern: dms: Add DMS QUERY opcode for devinfoIan Moffett
Add a new QUERY operation code that is used to fetch information about a specific disk. Signed-off-by: Ian Moffett <ian@osmora.org>
36 hourslibc: Add DMS I/O syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
36 hourskern: dms: Add initial DMS engine sourcesIan Moffett
The DMS engine handles performing I/O based on specific opcodes given to it and drives the callback wrappers. Signed-off-by: Ian Moffett <ian@osmora.org>
37 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>
37 hourskern: ahci: Don't hardcode block sizesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
37 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>
2 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>
4 dayskern: xhci: Initialize the DCBAAP register on initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 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>
6 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>