~ubuntu-branches/debian/squeeze/xserver-xorg-video-voodoo/squeeze

« back to all changes in this revision

Viewing changes to src/voodoo_driver.c

  • Committer: Bazaar Package Importer
  • Author(s): Brice Goglin
  • Date: 2009-07-20 00:03:22 UTC
  • mfrom: (1.1.11 upstream) (0.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20090720000322-3na1qnqpmgkbi9rn
* New upstream release.
* Bump Standards-Version to 3.8.2.
* Remove 01_gen_pci_ids.diff. The X server now uses an internal table to
  choose a driver during autoconfiguration.
  + Disable patch system and remove quilt from build-deps.
* Add myself to Uploaders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
  {-1, NULL }
129
129
};
130
130
 
131
 
 
132
 
/*
133
 
 * List of symbols from other modules that this module references.  This
134
 
 * list is used to tell the loader that it is OK for symbols here to be
135
 
 * unresolved providing that it hasn't been told that they haven't been
136
 
 * told that they are essential via a call to xf86LoaderReqSymbols() or
137
 
 * xf86LoaderReqSymLists().  The purpose is this is to avoid warnings about
138
 
 * unresolved symbols that are not required.
139
 
 */
140
 
 
141
 
static const char *fbSymbols[] = {
142
 
  "fbScreenInit",
143
 
  "fbPictureInit",
144
 
  NULL
145
 
};
146
 
 
147
 
static const char *xaaSymbols[] = {
148
 
    "XAACreateInfoRec",
149
 
    "XAAInit",
150
 
    "XAADestroyInfoRec",
151
 
    NULL
152
 
};
153
 
 
154
 
static const char *shadowSymbols[] = {
155
 
  "ShadowFBInit",
156
 
  NULL
157
 
};
158
 
 
159
131
#ifdef XFree86LOADER
160
132
 
161
133
static XF86ModuleVersionInfo voodooVersRec =
181
153
  {
182
154
    setupDone = TRUE;
183
155
    xf86AddDriver(&VOODOO, module, 0);
184
 
    LoaderRefSymLists(fbSymbols, shadowSymbols, xaaSymbols,NULL);
185
156
    return (pointer)1;    
186
157
  }
187
158
  return NULL;
583
554
    return FALSE;
584
555
  }
585
556
 
586
 
  xf86LoaderReqSymLists(fbSymbols, NULL);
587
 
 
588
557
  if (!xf86LoadSubModule(pScrn, "xaa")) {
589
558
    VoodooFreeRec(pScrn);
590
559
    return FALSE;
591
560
  }
592
561
  
593
 
  xf86LoaderReqSymLists(xaaSymbols, NULL);
594
 
  
595
562
  if(pVoo->ShadowFB)
596
563
  {
597
564
    /* Load the shadow framebuffer */
599
566
      VoodooFreeRec(pScrn);
600
567
      return FALSE;
601
568
    }
602
 
    xf86LoaderReqSymLists(shadowSymbols, NULL);
603
569
  }
604
570
  return TRUE;
605
571
}