Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 9166 Details for
Bug 16435
Compilation of xfree aborts due to parse and syntax errors of xf86str.h
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
source with errors
lnxResource.c (text/x-csrc), 9.58 KB, created by
Viktor Jesina
on 2003-03-09 09:34:37 UTC
(
hide
)
Description:
source with errors
Filename:
MIME Type:
Creator:
Viktor Jesina
Created:
2003-03-09 09:34:37 UTC
Size:
9.58 KB
patch
obsolete
>/* $XFree86: xc/programs/Xserver/hw/xfree86/os-support/linux/lnxResource.c,v 3.17 2001/11/01 23:35:33 dawes Exp $ */ > >/* Resource information code */ > >#include "X.h" >#include "xf86.h" >#include "xf86Priv.h" >#include "xf86Privstr.h" >#include "xf86Pci.h" >#include "xf86Resources.h" >#define NEED_OS_RAC_PROTOS >#include "xf86_OSlib.h" >#include "lnx.h" > >#ifdef __alpha__ >resRange PciAvoid[] = {_PCI_AVOID_PC_STYLE, _END}; > >#define MIN_SYSTEM_DOMAIN 0 >#ifdef HAVE_DOMAINS >#define MAX_SYSTEM_DOMAIN 255 >#else >#define MAX_SYSTEM_DOMAIN 0 >#endif >#define ISA_SYSTEM_DOMAIN 0 > >resPtr >xf86BusAccWindowsFromOS(void) >{ > resPtr ret = NULL; > resRange range; > int domain; > > for (domain = MIN_SYSTEM_DOMAIN; domain <= MAX_SYSTEM_DOMAIN; domain++) { > RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > > RANGE(range, 0x00000000, 0xffffffff, ResExcIoBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > } > return ret; >} > >resPtr >xf86PciBusAccWindowsFromOS(int domain) >{ > resPtr ret = NULL; > resRange range; > /* > * On the Alpha the first 16MB of every 128 Mb segment in > * sparse address space are an image of the ISA bus range > */ > if (_bus_base_sparse()) { > RANGE(range, 0x00000000, 0x07ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x09000000, 0x0fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x11000000, 0x17ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x19000000, 0x1fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x21000000, 0x27ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x29000000, 0x2fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x31000000, 0x37ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x39000000, 0x3fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x41000000, 0x47ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x49000000, 0x4fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x51000000, 0x57ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x59000000, 0x5fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x61000000, 0x67ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x69000000, 0x6fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x71000000, 0x77ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x79000000, 0x7fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x81000000, 0x87ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x89000000, 0x8fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x91000000, 0x97ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x99000000, 0x9fffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xa1000000, 0xa7ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xa9000000, 0xafffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xb1000000, 0xb7ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xb9000000, 0xbfffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xc1000000, 0xc7ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xc9000000, 0xcfffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xd1000000, 0xd7ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xd9000000, 0xdfffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xe1000000, 0xe7ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xe9000000, 0xefffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xf1000000, 0xf7ffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xf9000000, 0xffffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > } else { > RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > } > RANGE(range, 0x00000000, 0xffffffff, ResExcIoBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > return ret; >} > >resPtr >xf86IsaBusAccWindowsFromOS(void) >{ > resPtr ret = NULL; > resRange range; > > RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock, ISA_SYSTEM_DOMAIN); > ret = xf86AddResToList(ret, &range, -1); > > RANGE(range, 0x00000000, 0xffffffff, ResExcIoBlock, ISA_SYSTEM_DOMAIN); > ret = xf86AddResToList(ret, &range, -1); > return ret; >} > >resPtr >xf86AccResFromOS(resPtr ret) >{ > resRange range; >#ifdef HAVE_DOMAINS > int domain = MIN_SYSTEM_DOMAIN; >#endif > >#ifdef HAVE_DOMAINS > if (ret != NULL) > domain = ret->res_domain; >#endif > > /* > * Fallback is to claim the following areas: > * > * 0x000c0000 - 0x000effff location of VGA and other extensions ROMS > */ > > RANGE(range, 0x000c0000, 0x000effff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > > /* > * Fallback would be to claim well known ports in the 0x0 - 0x3ff range > * along with their sparse I/O aliases, but that's too imprecise. Instead > * claim a bare minimum here. > */ > RANGE(range, 0x00000000, 0x000000ff, ResExcIoBlock, domain); /* For mainboard */ > ret = xf86AddResToList(ret, &range, -1); > > /* > * At minimum, the top and bottom resources must be claimed, so that > * resources that are (or appear to be) unallocated can be relocated. > */ > RANGE(range, 0x00000000, 0x00000000, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xffffffff, 0xffffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); >/* RANGE(range, 0x00000000, 0x00000000, ResExcIoBlock, domain); > ret = xf86AddResToList(ret, &range, -1); */ > RANGE(range, 0xffffffff, 0xffffffff, ResExcIoBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > > /* XXX add others */ > return ret; >} > >#elif defined(__powerpc__) || defined(__sparc__) || defined(__mips__) || defined(__sh__) || defined(__mc68000__) || defined(__arm__) || defined(__s390__) || defined(__hppa__) > > /* XXX this isn't exactly correct but it will get the server working > * for now until we get something better. > */ > >#ifdef __sparc__ >#ifndef HAVE_DOMAINS >#error This platform cannot operate correctly without HAVE_DOMAINS defined >#endif >resRange PciAvoid[] = {_END}; >#define MIN_SYSTEM_DOMAIN 0 >#define MAX_SYSTEM_DOMAIN 255 >#define ISA_SYSTEM_DOMAIN 0 >#else >resRange PciAvoid[] = {_PCI_AVOID_PC_STYLE, _END}; >#define MIN_SYSTEM_DOMAIN 0 >#define MAX_SYSTEM_DOMAIN 0 >#define ISA_SYSTEM_DOMAIN 0 >#endif > >resPtr >xf86BusAccWindowsFromOS(void) >{ > resPtr ret = NULL; > resRange range; > int domain; > > for (domain = MIN_SYSTEM_DOMAIN; domain <= MAX_SYSTEM_DOMAIN; domain++) { > RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > >#ifdef __sparc__ > RANGE(range, 0x00000000, 0x00ffffff, ResExcIoBlock, domain); >#else > RANGE(range, 0x00000000, 0x0000ffff, ResExcIoBlock, domain); >#endif > ret = xf86AddResToList(ret, &range, -1); > } > > return ret; >} > >resPtr >xf86PciBusAccWindowsFromOS(int domain) >{ > resPtr ret = NULL; > resRange range; > > RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > >#ifdef __sparc__ > RANGE(range, 0x00000000, 0x00ffffff, ResExcIoBlock, domain); >#else > RANGE(range, 0x00000000, 0x0000ffff, ResExcIoBlock, domain); >#endif > ret = xf86AddResToList(ret, &range, -1); > return ret; >} > >resPtr >xf86IsaBusAccWindowsFromOS(void) >{ > resPtr ret = NULL; > resRange range; > > RANGE(range, 0x00000000, 0xffffffff, ResExcMemBlock, ISA_SYSTEM_DOMAIN); > ret = xf86AddResToList(ret, &range, -1); > >#ifdef __sparc__ > RANGE(range, 0x00000000, 0x00ffffff, ResExcIoBlock, ISA_SYSTEM_DOMAIN); >#else > RANGE(range, 0x00000000, 0x0000ffff, ResExcIoBlock, ISA_SYSTEM_DOMAIN); >#endif > ret = xf86AddResToList(ret, &range, -1); > return ret; >} > >resPtr >xf86AccResFromOS(resPtr ret) >{ > resRange range; >#ifdef HAVE_DOMAINS > int domain = MIN_SYSTEM_DOMAIN; >#endif > >#ifdef HAVE_DOMAINS > if (ret != NULL) > domain = ret->res_domain; >#endif > > /* > * At minimum, the top and bottom resources must be claimed, so that > * resources that are (or appear to be) unallocated can be relocated. > */ > RANGE(range, 0x00000000, 0x00000000, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0xffffffff, 0xffffffff, ResExcMemBlock, domain); > ret = xf86AddResToList(ret, &range, -1); > RANGE(range, 0x00000000, 0x00000000, ResExcIoBlock, domain); > ret = xf86AddResToList(ret, &range, -1); >#ifdef __sparc__ > RANGE(range, 0x00ffffff, 0x00ffffff, ResExcIoBlock, domain); >#else > RANGE(range, 0x0000ffff, 0x0000ffff, ResExcIoBlock, domain); >#endif > ret = xf86AddResToList(ret, &range, -1); > > return ret; >} > >#else > >#error : Put your platform dependent code here!! > >#endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 16435
:
9162
|
9163
|
9164
|
9165
| 9166