|
Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
|
#include <type.h>Go to the source code of this file.
Macros | |
| #define | SERIAL_COM1 0x3f8 |
| #define | SERIAL_COM2 0x2f8 |
| #define | SERIAL_COM3 0x3e8 |
| #define | SERIAL_COM4 0x2e8 |
| #define | serial_trace(...) |
| #define | LOG_INFO(mod, fmt, ...) |
| #define | LOG_DEBUG(mod, fmt, ...) |
| #define | LOG_ERROR(mod, fmt, ...) |
| #define | LOG_WARN(mod, fmt, ...) |
| #define | LOG2_INFO(mod, fmt, ...) |
| #define | LOG2_DEBUG(mod, fmt, ...) |
| #define | LOG2_ERROR(mod, fmt, ...) |
| #define | LOG2_WARN(mod, fmt, ...) |
Functions | |
| int | serial_is_transmit_empty (void) |
| void | serial_send_string (char *str) |
| void | serial_send_number (int64_t num, int base) |
| void | serial_printf (const char *fmt,...) |
| void | serial_putc (char c) |
| void | serial_clear () |
| void | serial_setup () |
| void | serial2_printf (const char *fmt,...) |
| void | serial2_flush () |
| void | parse_multicore (__builtin_va_list args, const char *fmt) |
| #define LOG2_DEBUG | ( | mod, | |
| fmt, | |||
| ... ) |
Definition at line 35 of file serial.h.
Referenced by __attribute__(), attach_to_scheduler(), create_thread(), elf_call_init_array(), elf_relocate_rel(), INIT(), lookup_netdev(), syscall_dispatch(), thrAcquireNewSlot(), usleep_backend(), vfs_event_handler(), vfs_umount(), vxAPICTimerCalibrationUsingHPET(), and vxSchedulerTick().
| #define LOG2_ERROR | ( | mod, | |
| fmt, | |||
| ... ) |
Definition at line 38 of file serial.h.
Referenced by __attribute__(), attach_to_scheduler(), execve(), for_each_virtio_device(), hpet_level_timer_setup(), iso9660_lookup(), iso9660_read(), proccess_elf(), syscall_ioctl(), syscall_read(), syscall_write(), syscall_writev(), vxGetVoxmoModule(), vxVoxmoInstall(), vxVoxmoProbe(), and workqueue_process().
| #define LOG2_INFO | ( | mod, | |
| fmt, | |||
| ... ) |
Definition at line 33 of file serial.h.
Referenced by __attribute__(), __attribute__(), __attribute__(), __attribute__(), bind_nic(), elf_call_init_array(), elf_count_load_size(), elf_dyn_map_all(), elf_find_symbol(), elf_load(), elf_mmap_got(), elf_relocate_dyn(), elf_section_map_all(), execve(), for_each_virtio_device(), INIT(), INIT(), init_simd(), iso9660_lookup(), mcfg_parse(), socket_receive(), tty_check_and_flush(), virtio_scan_capabilities(), vxHPETInitialize(), and workqueue_process().
| #define LOG2_WARN | ( | mod, | |
| fmt, | |||
| ... ) |
Definition at line 40 of file serial.h.
Referenced by elf_find_symbol(), elf_relocate_rel(), handle_icmp(), INIT(), init_simd(), iso9660_lookup(), vaddr_to_file_offset(), vfs_umount(), vfs_umount_recursive(), virtio_scan_capabilities(), and vxSocket().
| #define LOG_DEBUG | ( | mod, | |
| fmt, | |||
| ... ) |
Definition at line 22 of file serial.h.
Referenced by __attribute__(), __attribute__(), apicInitialize(), INIT(), INIT(), iso9660_lookup(), parsing_madt(), and sipi_sequential().
| #define LOG_ERROR | ( | mod, | |
| fmt, | |||
| ... ) |
Definition at line 25 of file serial.h.
Referenced by __attribute__(), execve(), INIT(), INIT(), library_register(), vxAddWorkqueueTask(), vxAPICCreateTimer(), and vxSlabAlloc().
| #define LOG_INFO | ( | mod, | |
| fmt, | |||
| ... ) |
Definition at line 20 of file serial.h.
Referenced by __attribute__(), build_context_from_stivale2(), enable_x2apic(), execve(), INIT(), INIT(), INIT(), INIT(), INIT(), INIT(), INIT(), INIT(), INIT(), initialize_physical_paging_window(), library_load(), library_register(), mcfg_parse(), parsing_madt(), pci_check_bus(), pci_scan(), print_guid(), proccess_elf(), rtc_initialize(), run_all_init_calls(), vxCreateSlabCache(), vxPCIGatheringBusInfo(), vxVoxmoInstall(), vxVoxmoProbe(), and vxVoxmoReload().
| #define LOG_WARN | ( | mod, | |
| fmt, | |||
| ... ) |
Definition at line 27 of file serial.h.
Referenced by __attribute__(), build_context_from_stivale2(), iso9660_lookup(), and vxAPICCreateTimer().
| #define SERIAL_COM1 0x3f8 |
Definition at line 6 of file serial.h.
Referenced by serial_is_transmit_empty(), serial_putc(), and serial_setup().
| #define serial_trace | ( | ... | ) |
Definition at line 19 of file serial.h.
Referenced by __attribute__(), build_context_from_stivale2(), execve(), INIT(), mem_create_physwindow(), mem_release_physwindow(), paging_debug(), pci_check_func(), syscall_mmap(), and vma_rbt_debug_node().
| void parse_multicore | ( | __builtin_va_list | args, |
| const char * | fmt ) |
Definition at line 271 of file serial.c.
Referenced by __attribute__().
| void serial2_flush | ( | ) |
Definition at line 359 of file serial.c.
References __buffer, __flush_lock, serial_entry_t::data, head, len, serial_entry_t::len, SERIAL_BUFFER2_MASK, serial_putc(), SLOT_DROPPED, SLOT_EMPTY, SLOT_WRITING, SPIN_LIMIT, and tail.
Referenced by __attribute__().
| void serial2_printf | ( | const char * | fmt, |
| ... ) |
| void serial_clear | ( | ) |
Definition at line 105 of file serial.c.
References serial_printf().
| int serial_is_transmit_empty | ( | void | ) |
Definition at line 56 of file serial.c.
References inb(), and SERIAL_COM1.
Referenced by serial_putc().
| void serial_printf | ( | const char * | fmt, |
| ... ) |
| void serial_putc | ( | char | c | ) |
Definition at line 60 of file serial.c.
References outb(), SERIAL_COM1, and serial_is_transmit_empty().
Referenced by parse_before_multicore(), serial2_flush(), serial_send_number(), serial_send_padded(), and serial_send_string().
| void serial_send_number | ( | int64_t | num, |
| int | base ) |
Definition at line 72 of file serial.c.
References base, and serial_putc().
| void serial_send_string | ( | char * | str | ) |
Definition at line 67 of file serial.c.
References serial_putc(), and str().
Referenced by parse_before_multicore().
| void serial_setup | ( | ) |
Definition at line 46 of file serial.c.
References INT_ENABLE_OFFSET, outb(), and SERIAL_COM1.
Referenced by __attribute__(), and __attribute__().