summaryrefslogtreecommitdiff
path: root/src/kernel/arch/amd64/driver/driver.h
blob: 6f862cf03ee50d264ed9d614fb3ec3682b428d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include <kernel/types.h>
#include <stddef.h>
#include <stdint.h>

struct GfxInfo {
	char *b;
	uint32_t width, height;
	uint32_t pitch; /* width in bytes of a single scanline */
	size_t size;
	uint8_t bpp;
};

void pata_init(void);
void ps2_init(void);
void rtl8139_init(uint32_t bdf);
void time_init(void);
void vfs_root_init(void);
void video_init(GfxInfo);