summaryrefslogtreecommitdiffstats
path: root/sys/dev/vt
diff options
context:
space:
mode:
authorroyger <royger@FreeBSD.org>2014-12-30 08:50:07 +0000
committerroyger <royger@FreeBSD.org>2014-12-30 08:50:07 +0000
commit7a97a79c00dc2eb124e333e67220932471754d7c (patch)
tree2fa80250bac8a29abe94e8e994c33896b1f96173 /sys/dev/vt
parentc09b4d39dfd5cb4225b71feb5b6d79c8c8b2945c (diff)
downloadFreeBSD-src-7a97a79c00dc2eb124e333e67220932471754d7c.zip
FreeBSD-src-7a97a79c00dc2eb124e333e67220932471754d7c.tar.gz
Partially revert "vt: register the memory regions used by the vt drivers"
Revert the EFI part of r276064 until I can test it properly on a real EFI system. This was causing problems to people booting using UEFI and vt. Reported by: O. Hartmann <ohartman@zedat.fu-berlin.de>
Diffstat (limited to 'sys/dev/vt')
-rw-r--r--sys/dev/vt/hw/efifb/efifb.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/sys/dev/vt/hw/efifb/efifb.c b/sys/dev/vt/hw/efifb/efifb.c
index 7695547..05b2d79 100644
--- a/sys/dev/vt/hw/efifb/efifb.c
+++ b/sys/dev/vt/hw/efifb/efifb.c
@@ -37,9 +37,6 @@ __FBSDID("$FreeBSD$");
#include <sys/kernel.h>
#include <sys/fbio.h>
#include <sys/linker.h>
-#include <sys/bus.h>
-#include <sys/module.h>
-#include <sys/rman.h>
#include "opt_platform.h"
@@ -182,53 +179,3 @@ vt_efifb_remap(void *xinfo)
info->fb_size, VM_MEMATTR_WRITE_COMBINING);
}
-/* Dummy NewBus functions to reserve the resources used by the efifb driver */
-static void
-vtefifb_identify(driver_t *driver, device_t parent)
-{
-
- if (local_info.fb_pbase == 0 || local_info.fb_size == 0)
- return;
-
- if (BUS_ADD_CHILD(parent, 0, driver->name, 0) == NULL)
- panic("Unable to attach vt_efifb console");
-}
-
-static int
-vtefifb_probe(device_t dev)
-{
-
- device_set_desc(dev, "vt_efifb driver");
- return (BUS_PROBE_NOWILDCARD);
-}
-
-static int
-vtefifb_attach(device_t dev)
-{
- struct resource *pseudo_phys_res;
- int res_id;
-
- res_id = 0;
- pseudo_phys_res = bus_alloc_resource(dev, SYS_RES_MEMORY,
- &res_id, local_info.fb_pbase,
- local_info.fb_pbase + local_info.fb_size,
- local_info.fb_size, RF_ACTIVE);
- if (pseudo_phys_res == NULL)
- panic("Unable to reserve vt_efifb memory");
- return (0);
-}
-
-/*-------------------- Private Device Attachment Data -----------------------*/
-static device_method_t vtefifb_methods[] = {
- /* Device interface */
- DEVMETHOD(device_identify, vtefifb_identify),
- DEVMETHOD(device_probe, vtefifb_probe),
- DEVMETHOD(device_attach, vtefifb_attach),
-
- DEVMETHOD_END
-};
-
-DEFINE_CLASS_0(vtefifb, vtefifb_driver, vtefifb_methods, 0);
-devclass_t vtefifb_devclass;
-
-DRIVER_MODULE(vtefifb, nexus, vtefifb_driver, vtefifb_devclass, NULL, NULL);
OpenPOWER on IntegriCloud