diff options
author | Martin Pieuchot <mpieuchot@nolizard.org> | 2013-08-09 18:57:19 +0200 |
---|---|---|
committer | Jonathan Gray <jsg@jsg.id.au> | 2013-08-12 10:47:39 +1000 |
commit | ed00ac0090464a5340ef57bd975f7fce1c142cee (patch) | |
tree | 1ef6e18bfdde6c62d60c9c628329e79af2633667 /sys/arch/macppc/pci/vgafb.c | |
parent | 58bbe25523e607f5c22411107a6db9f517712cef (diff) |
Match the macppc's framebuffer device with its OpenFirmware node likekms/radeon
on sparc64.
Diffstat (limited to 'sys/arch/macppc/pci/vgafb.c')
-rw-r--r-- | sys/arch/macppc/pci/vgafb.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/arch/macppc/pci/vgafb.c b/sys/arch/macppc/pci/vgafb.c index 91d3cb8bc74..b93d4559e18 100644 --- a/sys/arch/macppc/pci/vgafb.c +++ b/sys/arch/macppc/pci/vgafb.c @@ -298,6 +298,14 @@ vgafb_mmap(void *v, off_t off, int prot) } int +vgafb_is_console(int node) +{ + extern int fbnode; + + return (fbnode == node); +} + +int vgafb_cnattach(bus_space_tag_t iot, bus_space_tag_t memt, int type, int check) { struct vga_config *vc = &vgafbcn; |