Define fb newbus interface to connect framebuffer providers with fbd.

Sponsored by:	The FreeBSD Foundation
This commit is contained in:
ray 2013-10-31 11:51:18 +00:00
parent a2f43a3339
commit a42dad644c
2 changed files with 14 additions and 0 deletions

View File

@ -1400,6 +1400,7 @@ dev/ex/if_ex_pccard.c optional ex pccard
dev/exca/exca.c optional cbb
dev/fatm/if_fatm.c optional fatm pci
dev/fb/fbd.c optional fbd | vt
dev/fb/fb_if.m optional fbd | vt
dev/fb/splash.c optional splash
dev/fdt/fdt_common.c optional fdt
dev/fdt/fdt_ic_if.m optional fdt

13
sys/dev/fb/fb_if.m Normal file
View File

@ -0,0 +1,13 @@
#include <sys/bus.h>
#include <sys/fbio.h>
INTERFACE fb;
METHOD int pin_max {
device_t dev;
int *npins;
};
METHOD struct fb_info * getinfo {
device_t dev;
};