diff options
author | marha <marha@users.sourceforge.net> | 2012-03-23 10:05:55 +0100 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2012-03-23 10:05:55 +0100 |
commit | 0f834b91a4768673833ab4917e87d86c237bb1a6 (patch) | |
tree | 363489504ed4b2d360259b8de4c9e392918e5d02 /xorg-server/hw/xfree86/os-support/bsd/bsd_axp.c | |
parent | fc72edebf875378459368c5383d9023730cbca54 (diff) | |
download | vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.gz vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.tar.bz2 vcxsrv-0f834b91a4768673833ab4917e87d86c237bb1a6.zip |
libX11 xserver fontconfig mesa pixman xkbcomp xkeyboard-config git update
23 Mar 2012
Diffstat (limited to 'xorg-server/hw/xfree86/os-support/bsd/bsd_axp.c')
-rw-r--r-- | xorg-server/hw/xfree86/os-support/bsd/bsd_axp.c | 65 |
1 files changed, 32 insertions, 33 deletions
diff --git a/xorg-server/hw/xfree86/os-support/bsd/bsd_axp.c b/xorg-server/hw/xfree86/os-support/bsd/bsd_axp.c index 77c87ce1d..e7a36f8bf 100644 --- a/xorg-server/hw/xfree86/os-support/bsd/bsd_axp.c +++ b/xorg-server/hw/xfree86/os-support/bsd/bsd_axp.c @@ -24,49 +24,48 @@ axpDevice bsdGetAXP(void); */ typedef struct { - char *name; - int type; -} _AXP; + char *name; + int type; +} _AXP; static _AXP axpList[] = { - {"apecs",APECS}, - {"pyxis",PYXIS}, - {"cia",CIA}, - {"irongate",IRONGATE}, - {"lca",LCA}, - {"t2",T2}, - {"tsunami",TSUNAMI}, - {NULL,SYS_NONE} + {"apecs", APECS}, + {"pyxis", PYXIS}, + {"cia", CIA}, + {"irongate", IRONGATE}, + {"lca", LCA}, + {"t2", T2}, + {"tsunami", TSUNAMI}, + {NULL, SYS_NONE} }; axpDevice bsdGetAXP(void) { - int i; - char sysname[64]; - size_t len = sizeof(sysname); - + int i; + char sysname[64]; + size_t len = sizeof(sysname); + #ifdef __OpenBSD__ - int mib[3]; - int error; + int mib[3]; + int error; - mib[0] = CTL_MACHDEP; - mib[1] = CPU_CHIPSET; - mib[2] = CPU_CHIPSET_TYPE; + mib[0] = CTL_MACHDEP; + mib[1] = CPU_CHIPSET; + mib[2] = CPU_CHIPSET_TYPE; - if ((error = sysctl(mib, 3, &sysname, &len, NULL, 0)) < 0) -#else - if ((sysctlbyname("hw.chipset.type", &sysname, &len, - 0, 0)) < 0) + if ((error = sysctl(mib, 3, &sysname, &len, NULL, 0)) < 0) +#else + if ((sysctlbyname("hw.chipset.type", &sysname, &len, 0, 0)) < 0) #endif - FatalError("bsdGetAXP: can't find machine type\n"); + FatalError("bsdGetAXP: can't find machine type\n"); #ifdef DEBUG - xf86Msg(X_INFO,"AXP is a: %s\n",sysname); + xf86Msg(X_INFO, "AXP is a: %s\n", sysname); #endif - for (i=0;;i++) { - if (axpList[i].name == NULL) - return SYS_NONE; - if (!strcmp(sysname, axpList[i].name)) - return axpList[i].type; - } -} + for (i = 0;; i++) { + if (axpList[i].name == NULL) + return SYS_NONE; + if (!strcmp(sysname, axpList[i].name)) + return axpList[i].type; + } +} |