Changeset View
Changeset View
Standalone View
Standalone View
head/stand/ofw/libofw/openfirm.c
Show First 20 Lines • Show All 663 Lines • ▼ Show 20 Lines | OF_block_size(ihandle_t instance) | ||||
args.instance = instance; | args.instance = instance; | ||||
if (openfirmware(&args) == -1) | if (openfirmware(&args) == -1) | ||||
return (512); | return (512); | ||||
return (args.size); | return (args.size); | ||||
} | } | ||||
/* | /* | ||||
/* | |||||
* Memory functions | * Memory functions | ||||
*/ | */ | ||||
/* Claim an area of memory. */ | /* Claim an area of memory. */ | ||||
void * | void * | ||||
OF_claim(void *virt, u_int size, u_int align) | OF_claim(void *virt, u_int size, u_int align) | ||||
{ | { | ||||
static struct { | static struct { | ||||
▲ Show 20 Lines • Show All 152 Lines • Show Last 20 Lines |