+enum {
+ FAKEDEV_MEM = 10001,
+ FAKEDEV_GPIO,
+ FAKEDEV_FB0,
+ FAKEDEV_FB1,
+ FAKEDEV_MMUHACK,
+};
+
+static const struct {
+ const char *name;
+ int fd;
+} takeover_devs[] = {
+ { "/dev/mem", FAKEDEV_MEM },
+ { "/dev/GPIO", FAKEDEV_GPIO },
+ { "/dev/fb0", FAKEDEV_FB0 },
+ { "/dev/fb/0", FAKEDEV_FB0 },
+ { "/dev/fb1", FAKEDEV_FB1 },
+ { "/dev/fb/1", FAKEDEV_FB1 },
+ { "/dev/mmuhack", FAKEDEV_MMUHACK },
+};