# CFLAGS+= -DDHCP_USER_CLASS="5,'A','L','P','H','A',4,'B','E','T','A'" \
# -DDHCP_USER_CLASS_LEN=11
-# Set to enable FILO support
-# for FILO support it will make main call pci_init
-# INCLUDE_FILO=y
-ifdef INCLUDE_FILO
-CFLAGS+= -DCONFIG_FILO
-endif
-
# Enabling this causes Etherboot to ignore Etherboot-specific options
# that are not within an Etherboot encapsulated options field.
# This option should be enabled unless you have a legacy DHCP server
#include <gpxe/init.h>
#include <gpxe/pci.h>
-#ifdef CONFIG_FILO
-#include <lib.h>
-#endif
-
#undef __BIG_ENDIAN
#if 0
#define __LITTLE_ENDIAN
}
}
-#ifdef CONFIG_FILO
-#define USE_FILO_PCI_FIND 1
-#else
-#define USE_FILO_PCI_FIND 0
-#endif
-
-
static void btext_init(void)
{
#if 0
#else
uint32_t frame_buffer;// 0xfc000000
-#if USE_FILO_PCI_FIND==0
struct pci_device dev;
#warning "pci_find_device_x no longer exists; use find_pci_device instead"
if(dev.vendor==0) return; // no fb
frame_buffer = (uint32_t)dev.membase;
-#else
- struct pci_device *dev = 0;
-
- pci_init();
- dev = pci_find_device(0x1002, 0x4752, -1, -1, 0);
- if(!dev) {
- return; // no fb
- }
-
- pci_read_config_dword(dev, 0x10, &frame_buffer);
-#endif
-
#endif
btext_setup_display(640, 480, 8, 640,frame_buffer);