Changeset View
Changeset View
Standalone View
Standalone View
stand/i386/libi386/libi386.h
Show First 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | |||||
extern vm_offset_t memtop; /* last address of physical memory + 1 */ | extern vm_offset_t memtop; /* last address of physical memory + 1 */ | ||||
extern vm_offset_t memtop_copyin; /* memtop less heap size for the cases */ | extern vm_offset_t memtop_copyin; /* memtop less heap size for the cases */ | ||||
/* when heap is at the top of */ | /* when heap is at the top of */ | ||||
/* extended memory; for other cases */ | /* extended memory; for other cases */ | ||||
/* just the same as memtop */ | /* just the same as memtop */ | ||||
extern uint32_t high_heap_size; /* extended memory region available */ | extern uint32_t high_heap_size; /* extended memory region available */ | ||||
extern vm_offset_t high_heap_base; /* for use as the heap */ | extern vm_offset_t high_heap_base; /* for use as the heap */ | ||||
/* 16KB buffer space for real mode data transfers. */ | |||||
#define BIO_BUFFER_SIZE 0x4000 | |||||
void *bio_alloc(size_t size); | |||||
void bio_free(void *ptr, size_t size); | |||||
/* | /* | ||||
* Values for width parameter to biospci_{read,write}_config | * Values for width parameter to biospci_{read,write}_config | ||||
*/ | */ | ||||
#define BIOSPCI_8BITS 0 | #define BIOSPCI_8BITS 0 | ||||
#define BIOSPCI_16BITS 1 | #define BIOSPCI_16BITS 1 | ||||
#define BIOSPCI_32BITS 2 | #define BIOSPCI_32BITS 2 | ||||
void biospci_detect(void); | void biospci_detect(void); | ||||
Show All 18 Lines |