aboutsummaryrefslogtreecommitdiff
path: root/mirai/utils/types
AgeCommit message (Collapse)AuthorFilesLines
2026-02-24Bunch of stuff moved as .old for new arch changeBobby3-81/+0
2026-02-15refactor: Update stack entry structure and improve type handling in integer ↵Bobby1-1/+9
utilities
2026-02-15Refactor I/O operations and update driver importsBobby1-1/+9
- Renamed I/O port functions for clarity: `write_port_byte` to `out_byte`, `read_port_byte` to `in_byte`, `write_port_word` to `out_word`, `read_port_word` to `in_word`, `write_port_long` to `out_long`, and `read_port_long` to `in_long`. - Updated import paths for serial, ahci, ata, gpt, keyboard, terminal, and other drivers to reflect new directory structure. - Replaced instances of `read_file_by_path` with `view_unit_at` in various files for consistency. - Added new utility functions for AHCI FIS setup and defined types for AHCI and PCI. - Introduced string copy utilities for handling strings from Kata pointers.
2026-02-15Refactor AFS and GPT Filesystem ImplementationBobby1-0/+4
- Removed the old GPT partition table parser and replaced it with a new implementation in `mirai/fs/gpt/gpt.zig` that adheres to the latest standards. - Introduced a new AFS (Akiba File System) driver in `mirai/fs/afs/afs.zig`, including operations for reading, writing, and managing clusters and entries. - Added utilities for handling AFS locations, clusters, and cache operations in `mirai/fs/afs/location.zig`, `mirai/fs/afs/cluster.zig`, and `mirai/fs/afs/cache.zig`. - Implemented read and write operations for AFS in `mirai/fs/afs/read.zig` and `mirai/fs/afs/write.zig`, including functions for managing unit sizes and stack entries. - Introduced type definitions for AFS structures in `mirai/fs/afs/types.zig` and updated the existing types in `mirai/fs/gpt/types.zig`. - Added endian conversion utilities in `mirai/utils/bytes/endian.zig` to facilitate byte order handling. - Enhanced utility functions for converting integer types in `mirai/utils/types/int.zig`.
2026-02-15Refactor terminal graphics and video handlingBobby1-4/+8
- Updated terminal.zig to improve console output management with cursor and scrolling functionality. - Introduced new graphics constants in graphics.zig for better color and terminal configuration management. - Simplified framebuffer operations in video.zig by utilizing pixel utilities for pixel manipulation. - Removed obsolete file descriptor and location utilities to streamline the codebase. - Added pixel utilities for efficient pixel and framebuffer operations, including filling and clearing rectangles. - Enhanced character rendering and line management in terminal graphics.
2026-02-15feat: Add various invocations for file system and I/O operationsBobby3-0/+57
- Implemented `viewstack` invocation to list contents of a stack. - Created `attach` invocation for opening attachments with device and unit handling. - Added `getkeychar` invocation to read a single character from the keyboard. - Developed `mark` invocation to write to attachments with color support. - Introduced `seal` invocation to close attachments. - Implemented `view` invocation to read from attachments. - Added `wipe` invocation to clear the terminal screen. - Created `exit` invocation to dissolve a Kata and seal attachments. - Implemented `postman` invocation for letter passing between parent and child Katas. - Added `spawn` invocation to create new Katas from executables. - Implemented `wait` invocation to wait for child Katas to dissolve. - Added `yield` invocation to voluntarily give up CPU time to Sensei. - Introduced utility functions for location resolution and path handling. - Added memory copy and slice utilities for efficient data manipulation. - Implemented random number generation utilities. - Added string comparison utilities for easier string handling. - Introduced integer and pointer conversion utilities for type safety. - Implemented result handling utilities for invocation results.