Random header cleanup
This commit is contained in:
parent
521dc9b77b
commit
a9b9c2e20d
@ -4,6 +4,7 @@
|
||||
|
||||
#include <system.h>
|
||||
#include <fs.h>
|
||||
#include <printf.h>
|
||||
#include <pipe.h>
|
||||
#include <logging.h>
|
||||
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <logging.h>
|
||||
#include <module.h>
|
||||
#include <fs.h>
|
||||
#include <printf.h>
|
||||
|
||||
static uint32_t read_ramdisk(fs_node_t *node, uint32_t offset, uint32_t size, uint8_t *buffer);
|
||||
static uint32_t write_ramdisk(fs_node_t *node, uint32_t offset, uint32_t size, uint8_t *buffer);
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <fs.h>
|
||||
#include <pipe.h>
|
||||
#include <logging.h>
|
||||
#include <printf.h>
|
||||
|
||||
#include <ioctl.h>
|
||||
#include <termios.h>
|
||||
|
@ -5,6 +5,7 @@
|
||||
*/
|
||||
#include <system.h>
|
||||
#include <fs.h>
|
||||
#include <printf.h>
|
||||
#include <list.h>
|
||||
#include <process.h>
|
||||
#include <logging.h>
|
||||
|
10
kernel/include/printf.h
Normal file
10
kernel/include/printf.h
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef _PRINTF_H
|
||||
#define _PRINTF_H
|
||||
|
||||
#include <fs.h>
|
||||
|
||||
extern size_t vasprintf(char * buf, const char *fmt, va_list args);
|
||||
extern int sprintf(char *buf, const char *fmt, ...);
|
||||
extern int fprintf(fs_node_t * device, char *fmt, ...);
|
||||
|
||||
#endif /* _PRINTF_H */
|
@ -116,11 +116,6 @@ extern unsigned long timer_ticks;
|
||||
extern unsigned char timer_subticks;
|
||||
extern void relative_time(unsigned long seconds, unsigned long subseconds, unsigned long * out_seconds, unsigned long * out_subseconds);
|
||||
|
||||
/* kprintf */
|
||||
extern size_t vasprintf(char * buf, const char *fmt, va_list args);
|
||||
extern int sprintf(char *buf, const char *fmt, ...);
|
||||
extern int fprintf(fs_node_t * device, char *fmt, ...);
|
||||
|
||||
/* Memory Management */
|
||||
extern uintptr_t placement_pointer;
|
||||
extern void kmalloc_startat(uintptr_t address);
|
||||
@ -194,35 +189,20 @@ extern int gettimeofday(struct timeval * t, void * z);
|
||||
extern uint32_t now(void);
|
||||
|
||||
|
||||
/* CPU Detect by Brynet */
|
||||
extern int detect_cpu(void);
|
||||
|
||||
/* Video Drivers */
|
||||
|
||||
/* Floating Point Unit */
|
||||
void switch_fpu(void);
|
||||
void fpu_install(void);
|
||||
extern void switch_fpu(void);
|
||||
extern void fpu_install(void);
|
||||
|
||||
/* ELF */
|
||||
int exec( char *, int, char **, char **);
|
||||
int system( char *, int, char **);
|
||||
extern int exec( char *, int, char **, char **);
|
||||
extern int system( char *, int, char **);
|
||||
|
||||
/* Sytem Calls */
|
||||
void syscalls_install(void);
|
||||
|
||||
/* PCI */
|
||||
uint16_t pci_read_word(uint32_t bus, uint32_t slot, uint32_t func, uint16_t offset);
|
||||
void pci_write_word(uint32_t bus, uint32_t slot, uint32_t func, uint16_t offset, uint32_t data);
|
||||
|
||||
/* IDE / PATA */
|
||||
void ide_init(uint16_t bus);
|
||||
void ide_read_sector(uint16_t bus, uint8_t slave, uint32_t lba, uint8_t * buf);
|
||||
void ide_write_sector(uint16_t bus, uint8_t slave, uint32_t lba, uint8_t * buf);
|
||||
void ide_write_sector_retry(uint16_t bus, uint8_t slave, uint32_t lba, uint8_t * buf);
|
||||
extern void syscalls_install(void);
|
||||
|
||||
/* wakeup queue */
|
||||
int wakeup_queue(list_t * queue);
|
||||
int sleep_on(list_t * queue);
|
||||
extern int wakeup_queue(list_t * queue);
|
||||
extern int sleep_on(list_t * queue);
|
||||
|
||||
typedef struct {
|
||||
uint32_t signum;
|
||||
@ -230,16 +210,16 @@ typedef struct {
|
||||
regs_t registers_before;
|
||||
} signal_t;
|
||||
|
||||
void handle_signal(process_t *, signal_t *);
|
||||
extern void handle_signal(process_t *, signal_t *);
|
||||
|
||||
int send_signal(pid_t process, uint32_t signal);
|
||||
extern int send_signal(pid_t process, uint32_t signal);
|
||||
|
||||
#define USER_STACK_BOTTOM 0xAFF00000
|
||||
#define USER_STACK_TOP 0xB0000000
|
||||
#define SHM_START 0xB0000000
|
||||
|
||||
void validate(void * ptr);
|
||||
int validate_safe(void * ptr);
|
||||
extern void validate(void * ptr);
|
||||
extern int validate_safe(void * ptr);
|
||||
|
||||
#include <errno_defs.h>
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <list.h>
|
||||
#include <logging.h>
|
||||
#include <va_list.h>
|
||||
#include <printf.h>
|
||||
|
||||
log_type_t debug_level = NOTICE;
|
||||
void * debug_file = NULL;
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <list.h>
|
||||
#include <logging.h>
|
||||
#include <shm.h>
|
||||
#include <printf.h>
|
||||
|
||||
tree_t * process_tree; /* Parent->Children tree */
|
||||
list_t * process_list; /* Flat storage */
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <version.h>
|
||||
#include <shm.h>
|
||||
#include <utsname.h>
|
||||
#include <printf.h>
|
||||
|
||||
static char hostname[256];
|
||||
static size_t hostname_len = 0;
|
||||
|
@ -8,6 +8,7 @@
|
||||
#include <logging.h>
|
||||
#include <module.h>
|
||||
#include <fs.h>
|
||||
#include <printf.h>
|
||||
|
||||
/* TODO: Move this to mod/ata.h */
|
||||
#include <ata.h>
|
||||
|
@ -3,6 +3,7 @@
|
||||
*/
|
||||
#include <system.h>
|
||||
#include <fs.h>
|
||||
#include <printf.h>
|
||||
#include <logging.h>
|
||||
#include <process.h>
|
||||
#include <version.h>
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <system.h>
|
||||
#include <logging.h>
|
||||
#include <module.h>
|
||||
#include <printf.h>
|
||||
#include <ata.h>
|
||||
|
||||
#define SECTORSIZE 512
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <system.h>
|
||||
#include <module.h>
|
||||
#include <fs.h>
|
||||
#include <printf.h>
|
||||
#include <mod/shell.h>
|
||||
|
||||
extern fs_node_t * ext2_fs_mount(char * device, char * mount_path);
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
#include <system.h>
|
||||
#include <fs.h>
|
||||
#include <printf.h>
|
||||
#include <types.h>
|
||||
#include <logging.h>
|
||||
#include <pci.h>
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include <fs.h>
|
||||
#include <version.h>
|
||||
#include <process.h>
|
||||
#include <printf.h>
|
||||
#include <module.h>
|
||||
|
||||
#define PROCFS_STANDARD_ENTRIES 6
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include <module.h>
|
||||
#include <logging.h>
|
||||
#include <printf.h>
|
||||
#include <pci.h>
|
||||
#include <ipv4.h>
|
||||
#include <mod/shell.h>
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include <system.h>
|
||||
#include <module.h>
|
||||
#include <fs.h>
|
||||
#include <printf.h>
|
||||
#include <mod/shell.h>
|
||||
|
||||
DEFINE_SHELL_FUNCTION(testwrite, "Test write") {
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include <hashmap.h>
|
||||
#include <module.h>
|
||||
#include <logging.h>
|
||||
#include <printf.h>
|
||||
|
||||
#include <mod/shell.h>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user