mainboard/siemens/sitemp_g1p1: Use tabs for indents
Change-Id: Ia5ea2198cdc93822723a4fe5440d574d76cb4de2 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/16847 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
7db506c3dd
commit
ffcc07dbad
|
@ -32,11 +32,11 @@ static INT15_function_extensions __int15_func;
|
||||||
/* System BIOS int15 function */
|
/* System BIOS int15 function */
|
||||||
int sbios_INT15_handler(void)
|
int sbios_INT15_handler(void)
|
||||||
{
|
{
|
||||||
int res = -1;
|
int res = -1;
|
||||||
|
|
||||||
printk(BIOS_DEBUG, "System BIOS INT 15h\n");
|
printk(BIOS_DEBUG, "System BIOS INT 15h\n");
|
||||||
|
|
||||||
switch (X86_EAX & 0xffff) {
|
switch (X86_EAX & 0xffff) {
|
||||||
#define BOOT_DISPLAY_DEFAULT 0
|
#define BOOT_DISPLAY_DEFAULT 0
|
||||||
#define BOOT_DISPLAY_CRT (1 << 0)
|
#define BOOT_DISPLAY_CRT (1 << 0)
|
||||||
#define BOOT_DISPLAY_TV (1 << 1)
|
#define BOOT_DISPLAY_TV (1 << 1)
|
||||||
|
@ -57,45 +57,45 @@ int sbios_INT15_handler(void)
|
||||||
printk(BIOS_DEBUG, "DISPLAY=%x\n", X86_ECX);
|
printk(BIOS_DEBUG, "DISPLAY=%x\n", X86_ECX);
|
||||||
res = 0;
|
res = 0;
|
||||||
break;
|
break;
|
||||||
case 0x4e08:
|
case 0x4e08:
|
||||||
switch (X86_EBX & 0xff) {
|
switch (X86_EBX & 0xff) {
|
||||||
case 0x00:
|
case 0x00:
|
||||||
X86_EAX &= ~(0xff);
|
X86_EAX &= ~(0xff);
|
||||||
X86_EBX = (X86_EBX & ~(0xff)) | __int15_func.regs.func00_LCD_panel_id;
|
X86_EBX = (X86_EBX & ~(0xff)) | __int15_func.regs.func00_LCD_panel_id;
|
||||||
printk(BIOS_DEBUG, "DISPLAY = %x\n", X86_EBX & 0xff);
|
printk(BIOS_DEBUG, "DISPLAY = %x\n", X86_EBX & 0xff);
|
||||||
res = 0;
|
res = 0;
|
||||||
break;
|
break;
|
||||||
case 0x02:
|
case 0x02:
|
||||||
break;
|
break;
|
||||||
case 0x05:
|
case 0x05:
|
||||||
X86_EAX &= ~(0xff);
|
X86_EAX &= ~(0xff);
|
||||||
X86_EBX = (X86_EBX & ~(0xff)) | __int15_func.regs.func05_TV_standard;
|
X86_EBX = (X86_EBX & ~(0xff)) | __int15_func.regs.func05_TV_standard;
|
||||||
printk(BIOS_DEBUG, "TV = %x\n", X86_EBX & 0xff);
|
printk(BIOS_DEBUG, "TV = %x\n", X86_EBX & 0xff);
|
||||||
res = 0;
|
res = 0;
|
||||||
break;
|
break;
|
||||||
case 0x80:
|
case 0x80:
|
||||||
X86_EAX &= ~(0xff);
|
X86_EAX &= ~(0xff);
|
||||||
X86_EBX &= ~(0xff);
|
X86_EBX &= ~(0xff);
|
||||||
printk(BIOS_DEBUG, "Integrated System Information = %x:%x\n", X86_EDX, X86_EDI);
|
printk(BIOS_DEBUG, "Integrated System Information = %x:%x\n", X86_EDX, X86_EDI);
|
||||||
vgainfo_addr = (X86_EDX * 16) + X86_EDI;
|
vgainfo_addr = (X86_EDX * 16) + X86_EDI;
|
||||||
res = 0;
|
res = 0;
|
||||||
break;
|
break;
|
||||||
case 0x89:
|
case 0x89:
|
||||||
X86_EAX &= ~(0xff);
|
X86_EAX &= ~(0xff);
|
||||||
X86_EBX &= ~(0xff);
|
X86_EBX &= ~(0xff);
|
||||||
printk(BIOS_DEBUG, "Get supported display device information\n");
|
printk(BIOS_DEBUG, "Get supported display device information\n");
|
||||||
res = 0;
|
res = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printk(BIOS_DEBUG, "Unknown INT15 function %04x!\n", X86_EAX & 0xffff);
|
printk(BIOS_DEBUG, "Unknown INT15 function %04x!\n", X86_EAX & 0xffff);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Initialization VBIOS function extensions */
|
/* Initialization VBIOS function extensions */
|
||||||
|
|
|
@ -18,14 +18,14 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
u8 func00_LCD_panel_id; // Callback Sub-Function 00h - Get LCD Panel ID
|
u8 func00_LCD_panel_id; // Callback Sub-Function 00h - Get LCD Panel ID
|
||||||
u8 func02_set_expansion;
|
u8 func02_set_expansion;
|
||||||
u8 func05_TV_standard; // Callback Sub-Function 05h - Select Boot-up TV Standard
|
u8 func05_TV_standard; // Callback Sub-Function 05h - Select Boot-up TV Standard
|
||||||
u16 func80_sysinfo_table;
|
u16 func80_sysinfo_table;
|
||||||
}INT15_regs;
|
}INT15_regs;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
INT15_regs regs;
|
INT15_regs regs;
|
||||||
}INT15_function_extensions;
|
}INT15_function_extensions;
|
||||||
|
|
||||||
extern void install_INT15_function_extensions(INT15_function_extensions *);
|
extern void install_INT15_function_extensions(INT15_function_extensions *);
|
||||||
|
|
|
@ -335,27 +335,25 @@ static void cable_detect(void)
|
||||||
|
|
||||||
static const char * adt7475_detect( void ) {
|
static const char * adt7475_detect( void ) {
|
||||||
|
|
||||||
int vendid, devid, devid2;
|
int vendid, devid, devid2;
|
||||||
const char *name = NULL;
|
const char *name = NULL;
|
||||||
|
|
||||||
vendid = adt7475_read_byte(REG_VENDID);
|
vendid = adt7475_read_byte(REG_VENDID);
|
||||||
devid2 = adt7475_read_byte(REG_DEVID2);
|
devid2 = adt7475_read_byte(REG_DEVID2);
|
||||||
if (vendid != 0x41 || /* Analog Devices */
|
if (vendid != 0x41 || (devid2 & 0xf8) != 0x68) /* Analog Devices */
|
||||||
(devid2 & 0xf8) != 0x68) {
|
return name;
|
||||||
return name;
|
|
||||||
}
|
|
||||||
|
|
||||||
devid = adt7475_read_byte(REG_DEVID);
|
devid = adt7475_read_byte(REG_DEVID);
|
||||||
if (devid == 0x73)
|
if (devid == 0x73)
|
||||||
name = "adt7473";
|
name = "adt7473";
|
||||||
else if (devid == 0x75 && adt7475_address == 0x2e)
|
else if (devid == 0x75 && adt7475_address == 0x2e)
|
||||||
name = "adt7475";
|
name = "adt7475";
|
||||||
else if (devid == 0x76)
|
else if (devid == 0x76)
|
||||||
name = "adt7476";
|
name = "adt7476";
|
||||||
else if ((devid2 & 0xfc) == 0x6c)
|
else if ((devid2 & 0xfc) == 0x6c)
|
||||||
name = "adt7490";
|
name = "adt7490";
|
||||||
|
|
||||||
return name;
|
return name;
|
||||||
}
|
}
|
||||||
|
|
||||||
// thermal control defaults
|
// thermal control defaults
|
||||||
|
|
Loading…
Reference in New Issue