summaryrefslogtreecommitdiff
path: root/src/sys/include
AgeCommit message (Collapse)Author
34 hourskern: Add SYS_lseek system callIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
34 hourskern: filedesc: Implement lseek() functionIan Moffett
The lseek() function allows the call to resposition the file offset using a specific whence value to govern offsetting semantics Signed-off-by: Ian Moffett <ian@osmora.org>
35 hourskern: vfs: Add vop_getattr() for vnodesIan Moffett
The vop_getattr() allows the caller to obtain information about a file represented by a specific vnode Signed-off-by: Ian Moffett <ian@osmora.org>
38 hourskern: Add kernel realloc() functionIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
40 hourskern: fs: Add initial tmpfs implementationIan Moffett
Supported VOPs as of now: - lookup() - create() - reclaim() Signed-off-by: Ian Moffett <ian@osmora.org>
40 hourskern: devfs: Fix typo in VFS ops structureIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
40 hourskern: filedesc: Add O_CREAT flag for fd_open()Ian Moffett
Add an O_CREAT flag to the ABI headers so that files can be created in the VFS. Signed-off-by: Ian Moffett <ian@osmora.org>
41 hourskern: vfs: Implement non image-fs namei lookupsIan Moffett
This commit adds supports for full lookups and path traversal when FS_ATTR_IMAGE is unset. We've also added a NAMEI_CREATE flag to create as it traverses. Signed-off-by: Ian Moffett <ian@osmora.org>
42 hourskern: vfs: Add 'create' virtual file operationIan Moffett
The create VOP allows the caller to create a node within the parent directory of a filesystem represented by a vnode. Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern: proc: Fix commentIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern/amd64: proc: md_proc_yield -> md_proc_idleIan Moffett
Improve naming to be less confusing Signed-off-by: Ian Moffett <ian@osmora.org>
3 dayskern/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>
4 dayskern: filedesc: Add close() system callIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: 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>
4 dayskern: 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>
4 dayskern: Add SYS_read system call for file I/OIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: 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>
4 dayskern: 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>
4 dayslibc: Add DMS I/O syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: 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>
4 dayskern: 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>
4 dayskern: ahci: Don't hardcode block sizesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
4 dayskern: 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>
5 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>
6 dayslibc: Add SYS_wait syscall interfaceIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: proc: Add initial waitpid() syscallIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: proc: Implement process sleeping and wakingIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskern: proc: Use seperate queue link for lookupsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 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>
7 dayskern/amd64: cpu: Get processor family IDIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern/amd64: Identify processor vendor in mdcoreIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: reboot: Add reboot system callIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 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>
7 dayskern: xhci: Allocate and init command ring / CRCRIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: xhci: Initialize the DCBAAP register on initIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: vm: Add BYTES_TO_PAGES helper macroIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: xhci: Fixup xHCI opregs field sizesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: usb: Extract HCSPARAMS1 register fieldsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 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>
7 dayskern: xhci: Comment USBCMD bitsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
7 dayskern: xhci: Implement controller hard resetIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern: io: Add initial xHCI skeletonIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 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>
8 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>
8 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>
8 dayskern: proc: Add process lookups by PIDIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern: Bump version up to v0.0.4Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern/amd64: proc: Mark process as exiting on killIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 dayskern: proc: Documented rest of structure fieldsIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
8 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>