Index: trunk/i386/libsaio/smbios_patcher.h =================================================================== --- trunk/i386/libsaio/smbios_patcher.h (revision 935) +++ trunk/i386/libsaio/smbios_patcher.h (revision 936) @@ -1,66 +0,0 @@ -/* - * Copyright 2008 mackerintel - */ -/* - * AsereBLN: cleanup - */ - -#ifndef __LIBSAIO_SMBIOS_PATCHER_H -#define __LIBSAIO_SMBIOS_PATCHER_H - -#include "libsaio.h" -#include "SMBIOS.h" - -extern char MacModel[8]; -extern unsigned int ModelRev; -extern uint64_t smbios_p; - - -/* From Foundation/Efi/Guid/Smbios/SmBios.h */ -/* Modified to wrap Data4 array init with {} */ -#define EFI_SMBIOS_TABLE_GUID {0xeb9d2d31, 0x2d88, 0x11d3, 0x9a, 0x16, {0x0, 0x90, 0x27, 0x3f, 0xc1, 0x4d}} - -#define SMBIOS_RANGE_START 0x000F0000 -#define SMBIOS_RANGE_END 0x000FFFFF - -#define SMBIOS_ORIGINAL 0 -#define SMBIOS_PATCHED 1 - -struct smbios_table_header -{ - uint8_t type; - uint8_t length; - uint16_t handle; -} __attribute__ ((packed)); - -struct smbios_property -{ - const char *name; - uint8_t table_type; - enum {SMSTRING, SMWORD, SMBYTE, SMOWORD} value_type; - int offset; - int (*auto_int) (const char *name, int table_num); - const char *(*auto_str) (const char *name, int table_num); - const char *(*auto_oword) (const char *name, int table_num); -}; - -struct smbios_table_description -{ - uint8_t type; - int len; - int (*numfunc)(int tablen); -}; - -/** call with flag SMBIOS_ORIGINAL to get orig. entrypoint - or call with flag SMBIOS_PATCHED to get patched smbios entrypoint -*/ -extern struct SMBEntryPoint *getSmbios(int); -extern struct DMIHeader* FindNextDmiTableOfType(int type, int minlen); -extern struct DMIHeader* FindFirstDmiTableOfType(int type, int minlen); -extern void getSmbiosProductName(); -const char *smbiosStringAtIndex(DMIHeader*, int index, int *length ); -extern bool scanDMI(void); -extern void scan_cpu_DMI(void); //PlatformInfo_t *); //Slice - - -#endif /* !__LIBSAIO_SMBIOS_PATCHER_H */ Index: trunk/i386/libsaio/mem.h =================================================================== --- trunk/i386/libsaio/mem.h (revision 935) +++ trunk/i386/libsaio/mem.h (revision 936) @@ -1,15 +0,0 @@ -/* - * Copyright 2010 AsereBLN. All rights reserved. - * - * mem.h - */ - -#ifndef __LIBSAIO_MEM_H -#define __LIBSAIO_MEM_H - -#include "platform.h" - -extern void scan_memory(); //PlatformInfo_t *); - - -#endif /* __LIBSAIO_MEM_H */ Index: trunk/i386/libsaio/ati.h =================================================================== --- trunk/i386/libsaio/ati.h (revision 935) +++ trunk/i386/libsaio/ati.h (revision 936) @@ -1,46 +0,0 @@ -/* - * ATI injector - * - * Copyright (C) 2009 Jasmin Fazlic, iNDi, netkas - * - * ATI injector is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * ATI driver and injector is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with ATI injector. If not, see . - */ - /* - * Alternatively you can choose to comply with APSL - */ - - -#ifndef __LIBSAIO_ATI_H -#define __LIBSAIO_ATI_H - -bool setup_ati_devprop(pci_dt_t *ati_dev); - -struct ati_chipsets_t { - unsigned device; - char *name; -}; - -struct ati_data_key { - uint32_t size; - char *name; - uint8_t data[]; -}; - -#define REG8(reg) ((volatile uint8_t *)regs)[(reg)] -#define REG16(reg) ((volatile uint16_t *)regs)[(reg) >> 1] -#define REG32R(reg) ((volatile uint32_t *)regs)[(reg) >> 2] -#define REG32W(reg, val) ((volatile uint32_t *)regs)[(reg) >> 2] = (val) - - -#endif /* !__LIBSAIO_ATI_H */