First import
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / os-support / solaris / apSolaris.shar
bloba3548f7b4b45d63319a88f06c4344a6cc9615907
1 #!/bin/sh
3 # This is a shell archive.  Save it in a file, remove anything before
4 # this line, and then unpack it by entering "sh file".  Note, it may
5 # create directories; files and directories will be owned by you and
6 # have default permissions.
7 # Made on Sun Jun 25 20:24:59 CEST 2006 by Martin Bochnig at martux.org
9 # This archive contains:
11 #       ./aperture
12 #       
13 #       ./aperture/Makefile
14 #       ./aperture/Makefile.amd64
15 #       ./aperture/Makefile.sparcv9
16 #       ./aperture/README
17 #       ./aperture/aperture.c
18 #       ./aperture/aperture.conf
19 #       ./aperture/devlink.tab
21 echo c - ./aperture
22 mkdir -p ./aperture > /dev/null 2>&1
24 echo x - ./aperture/Makefile
25 sed 's/^X//' >./aperture/Makefile << 'END-of-./aperture/Makefile'
27 X#   File: makefile for aperture Framebuffer Driver
28 X# Author: Doug Anson (danson@lgc.com)
29 X#   Date: 2/15/94
30 X# Modified: David Holland (davidh@use.com)
31 X#   Date: 2/23/94
32 X#   - Changed name, and debugging structure
33 X# Modified: Marc Aurele La France (tsi@xfree86.org)
34 X#   Date: 2001.06.08
35 X#   - SPARC support, cleanup and turf aptest.
37 X# >>NOTE<< Have a look at Makefile.sparcv9 for  specifics.
39 X# Modified: Martin Bochnig (martin@martux.org)
40 X#   Date: 2006.06.24
41 X#   - Slightly modified to also build on Solaris 10 and 11.
42 X#   - amd64 64 bit kernel support
43 X#   - cosmetical changes to also support sun4v, not only sun4u
45 X# >>NOTE<< Have a look at Makefile.amd64 for amd64 specifics.
47 X# GNU gcc compiler
48 XCC=gcc
49 XCFLGS=-fno-builtin -Wall -O3
52 X# SUNWspro compiler
53 X#CC=/opt/SUNWspro/bin/cc
54 X#CFLGS=-Xa -xnolib -xO3
57 X# Debug error reporting
58 X#DEBUG_FLG=
59 X#DEBUG_FLG=-DAPERTURE_DEBUG
62 X# Files and object declarations
63 XKERNEL_FLGS=-D_KERNEL -DSUNDDI
64 XCFLAGS= $(CFLGS) $(KERNEL_FLGS) $(DEBUG_FLG)
65 XCFILES= aperture.c
66 XOBJS= aperture.o
67 XDRIVER= aperture
70 X# Make rules
71 Xall: $(DRIVER)
73 X$(DRIVER): $(OBJS)
74 X       @if [ -f "Makefile.`isainfo -k`" ]; then \
75 X               make -f Makefile.`isainfo -k` $(DRIVER); \
76 X       else \
77 X               rm -f $(DRIVER); \
78 X               ld -r -o $(DRIVER) $(OBJS); \
79 X       fi
81 Xinstall: $(DRIVER)
82 X       @if [ -f "Makefile.`isainfo -k`" ]; then \
83 X               make -f Makefile.`isainfo -k` install; \
84 X       else \
85 X               cp aperture.conf /kernel/drv; \
86 X               cp $(DRIVER) /kernel/drv; \
87 X       fi
89 Xadd_drv:
90 X       @if [ -f "Makefile.`isainfo -k`" ]; then \
91 X               make -f Makefile.`isainfo -k` add_drv; \
92 X       else \
93 X               add_drv aperture; \
94 X       fi
96 Xclean:
97 X       rm -f *% *.BAK $(OBJS) $(DRIVER) core
99 X.SUFFIXES: .i
101 X.c.i:
102 X       $(CC) -E $(CFLAGS) $*.c > $@
104 X.c.o:
105 X       @if [ -f "Makefile.`isainfo -k`" ]; then \
106 X               make -f Makefile.`isainfo -k` $@; \
107 X       else \
108 X               rm -f $@; \
109 X               $(CC) -c $(CFLAGS) $*.c -o $@; \
110 X       fi
111 END-of-./aperture/Makefile
112 echo x - ./aperture/Makefile.amd64
113 sed 's/^X//' >./aperture/Makefile.amd64 << 'END-of-./aperture/Makefile.amd64'
115 X#   File: Makefile for aperture Framebuffer Driver
116 X# Author: Doug Anson (danson@lgc.com)
117 X#   Date: 2/15/94
118 X# Modified: David Holland (davidh@use.com)
119 X#   Date: 2/23/94
120 X#   - Changed name, and debugging structure
121 X# Modified: Marc Aurele La France (tsi@xfree86.org)
122 X#   Date: 2001.06.08
123 X#   - SPARC support, cleanup and turf aptest.
124 X# Modified: Martin Bochnig (martin@martux.org)
125 X#   - amd64 64 bit kernel support, cosmetics and also
126 X#     supporting sun4v (and arbitrary sparcv9) platforms
127 X#     as well as SunOS 5.10 or higher now
128 X#   - Changed name
132 X# GNU gcc compiler, version 3.2 or later
134 XCC=gcc
135 XCFLGS=-fno-builtin -Wall -O3 -m64 -mcmodel=kernel
138 X# SUNWspro compiler (untested, might not properly work for amd64 here)
139 X#CC=/opt/SUNWspro/bin/cc
140 X#CFLGS=-Xa -xarch=v9 -xnolib -xO3
143 X# Debug error reporting
144 X#DEBUG_FLG=
145 X#DEBUG_FLG=-DAPERTURE_DEBUG
148 X# Files and object declarations
149 XKERNEL_FLGS=-D_KERNEL -DSUNDDI
150 XCFLAGS= $(CFLGS) $(KERNEL_FLGS) $(DEBUG_FLG)
151 XCFILES= aperture.c
152 XOBJS= aperture.o
153 XDRIVER= aperture
156 X# Make rules
157 Xall: $(DRIVER)
159 X$(DRIVER): $(OBJS)
160 X       rm -f $(DRIVER)
161 X       ld -r -o $(DRIVER) $(OBJS)
163 Xinstall: $(DRIVER)
164 X       cp aperture.conf /kernel/drv
165 X       cp $(DRIVER) /kernel/drv/amd64
167 Xadd_drv:
168 X       add_drv aperture
170 Xclean:
171 X       rm -f *% *.BAK $(OBJS) $(DRIVER) core
173 X.SUFFIXES: .i
175 X.c.i:
176 X       $(CC) -E $(CFLAGS) $*.c > $@
177 END-of-./aperture/Makefile.amd64
178 echo x - ./aperture/Makefile.sparcv9
179 sed 's/^X//' >./aperture/Makefile.sparcv9 << 'END-of-./aperture/Makefile.sparcv9'
181 X#   File: makefile for aperture Framebuffer Driver
182 X# Author: Doug Anson (danson@lgc.com)
183 X#   Date: 2/15/94
184 X# Modified: David Holland (davidh@use.com)
185 X#   Date: 2/23/94
186 X#   - Changed name, and debugging structure
187 X# Modified: Marc Aurele La France (tsi@xfree86.org)
188 X#   Date: 2001.06.08
189 X#   - SPARC support, cleanup and turf aptest.
190 X# Modified: Martin Bochnig (martin@martux.org)
191 X#   Date: 2006.06.24
192 X#   - Changed name for generic sparcv9 support
193 X#   - updated to better work with Solaris 10 and 11
197 X# GNU gcc compiler, version 3.2 or later
199 XCC=gcc
200 XCFLGS=-fno-builtin -Wall -O3 -m64
203 X# SUNWspro compiler
204 X#CC=/opt/SUNWspro/bin/cc
205 X#CFLGS=-Xa -xarch=v9 -xnolib -xO3
208 X# Debug error reporting
209 X#DEBUG_FLG=
210 X#DEBUG_FLG=-DAPERTURE_DEBUG
213 X# Files and object declarations
214 XKERNEL_FLGS=-D_KERNEL -DSUNDDI
215 XCFLAGS= $(CFLGS) $(KERNEL_FLGS) $(DEBUG_FLG)
216 XCFILES= aperture.c
217 XOBJS= aperture.o
218 XDRIVER= aperture
221 X# Make rules
222 Xall: $(DRIVER)
224 X$(DRIVER): $(OBJS)
225 X       rm -f $(DRIVER)
226 X       ld -r -o $(DRIVER) $(OBJS)
228 Xinstall: $(DRIVER)
229 X       cp aperture.conf /kernel/drv
230 X       cp $(DRIVER) /kernel/drv/sparcv9
232 Xadd_drv:
233 X       add_drv aperture
235 Xclean:
236 X       rm -f *% *.BAK $(OBJS) $(DRIVER) core
238 X.SUFFIXES: .i
240 X.c.i:
241 X       $(CC) -E $(CFLAGS) $*.c > $@
242 END-of-./aperture/Makefile.sparcv9
243 echo x - ./aperture/README
244 sed 's/^X//' >./aperture/README << 'END-of-./aperture/README'
245 XFramebuffer aperture driver.
247 XThis driver was written to provide a device that, unlike /dev/mem, allows
248 Xmmap()'ing of ranges beyond installed memory.
250 XThe original x86-based version of this driver was the collaborative work of
251 XDoug Anson (danson@lgc.com), and David Holland (davidh@use.com).  It has since
252 Xbeen rewritten to also work on sparc machines and - later on - also on sparcv9 
253 Xand recently amd64 64 bit kernels.
254 XIt flawlessly compiles and installs on Solaris 10 and 11 now.
257 XInstallation instructions:
259 X1) Check the Makefile, for appropriate CC, and CFLAGS definitions.  Compiling
260 X   with APERTURE_DEBUG defined means the driver will generate reams of
261 X   debugging output.  You'll probably want to leave this off...
263 X2) Type 'make' (or 'gmake').  Both the driver and test program should compile 
264 X   without any problems. No warning messages should be generated.
266 X3) Become 'root'.
268 X4) Type 'make install' and 'make add_drv'.  The screen should look something
269 X   like this:
271 X       # make install
272 X       cp aperture aperture.conf /kernel/drv
273 X       # make add_drv
274 X       add_drv aperture
276 X   On a sparcv9 machine this will mention the /kernel/drv/sparcv9 directory
277 X   instead of /kernel/drv. Similarily /kernel/drv/amd64 should be used on amd64.
279 X   This installs the driver to the system.
281 X5) While as root modify the file /etc/devlink.tab, adding these lines:
283 X# The following entry is for the framebuffer driver
284 Xtype=ddi_pseudo;name=aperture  fbs/\M0
286 X   Add that line exactly as shown. You may also simply add the
287 X   contents of the devlink.tab file supplied to /etc/devlink.tab.
288 X   It contains the lines as well.  (Yes, that is a tab between
289 X   aperture and fbs, not spaces - very important)
291 X6) Perform a reconfiguration boot of the system.
293 X       # touch /reconfigure
294 X       # init 6
296 XBug reports, questions, suggestions, etc can be sent to xfree86@xfree86.org.
297 END-of-./aperture/README
298 echo x - ./aperture/aperture.c
299 sed 's/^X//' >./aperture/aperture.c << 'END-of-./aperture/aperture.c'
301 X * Copyright (C) 2001 The XFree86 Project, Inc.  All Rights Reserved.
302 X *
303 X * Permission is hereby granted, free of charge, to any person obtaining a copy
304 X * of this software and associated documentation files (the "Software"), to
305 X * deal in the Software without restriction, including without limitation the
306 X * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
307 X * sell copies of the Software, and to permit persons to whom the Software is
308 X * furnished to do so, subject to the following conditions:
309 X *
310 X * The above copyright notice and this permission notice shall be included in
311 X * all copies or substantial portions of the Software.
312 X *
313 X * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
314 X * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
315 X * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
316 X * XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
317 X * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
318 X * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
319 X *
320 X * Except as contained in this notice, the name of the XFree86 Project shall
321 X * not be used in advertising or otherwise to promote the sale, use or other
322 X * dealings in this Software without prior written authorization from the
323 X * XFree86 Project.
324 X */
327 X * Aperture driver for Solaris.
328 X */
331 X * Modified: Martin Bochnig (martin@martux.org)
332 X * Log:      Commented out obsolete kernel interfaces DDI_IDENTIFIED and DDI_NOT_IDENTIFIED
333 X *           not supported by SunOS 5.10 or higher anymore, 
334 X *           see http://docs.sun.com/app/docs/doc/819-2255/6n4ibnffr?a=view
335 X */
337 X#include <sys/conf.h>
338 X#include <sys/ddi.h>
339 X#include <sys/modctl.h>
340 X#include <sys/open.h>
341 X#include <sys/stat.h>
342 X#include <sys/sunddi.h>
344 X#define DEV_IDENT  "aperture"
345 X#define DEV_BANNER "XFree86 aperture driver"
347 X#ifndef D_64BIT
348 X#define D_64BIT 0
349 X#endif
351 X#ifndef NULL
352 X#define NULL ((void *)0)
353 X#endif
356 X * open(9E)
357 X */
358 X/*ARGSUSED*/
359 Xstatic int
360 Xaperture_open
362 X#ifdef __STDC__
363 X       dev_t *devp,
364 X       int flag,
365 X       int typ,
366 X       struct cred *cred
367 X#endif
369 X#ifndef __STDC__
370 X       dev_t *devp;
371 X       int flag;
372 X       int typ;
373 X       struct cred *cred;
374 X#endif
376 X       int error;
378 X#ifdef APERTURE_DEBUG
380 X       cmn_err(CE_CONT, DEV_IDENT ":  entering open()\n");
382 X#endif
384 X       if ((typ != OTYP_CHR) || (getminor(*devp)))
385 X               error = EINVAL;
386 X       else
387 X               error = 0;
389 X#ifdef APERTURE_DEBUG
391 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving open() = %d\n", error);
393 X#endif
395 X       return error;
399 X * mmap(9E)
400 X */
401 X/*ARGSUSED*/
402 Xstatic int
403 Xaperture_mmap
405 X#ifdef __STDC__
406 X       dev_t dev,
407 X       off_t off,
408 X       int prot
409 X#endif
411 X#ifndef __STDC__
412 X       dev_t dev;
413 X       off_t off;
414 X       int prot;
415 X#endif
417 X       pfn_t pf;
418 X       int error;
420 X#ifdef APERTURE_DEBUG
422 X       cmn_err(CE_CONT, DEV_IDENT ":  entering mmap(0x%016lx)\n", off);
424 X#endif
426 X       pf = btop((unsigned long)off);
428 X       /* Deal with mmap(9E) interface limits */
429 X       error = (int)pf;
430 X       if ((error < 0) || (pf != (pfn_t)error))
431 X               error = -1;
433 X#ifdef APERTURE_DEBUG
435 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving mmap() = 0x%08lx", error);
437 X#endif
439 X       return error;
442 Xstatic struct cb_ops aperture_cb_ops =
444 X       aperture_open,          /* open */
445 X       nulldev,                /* close */
446 X       nodev,                  /* strategy */
447 X       nodev,                  /* print */
448 X       nodev,                  /* dump */
449 X       nodev,                  /* read */
450 X       nodev,                  /* write */
451 X       nodev,                  /* ioctl */
452 X       nodev,                  /* devmap */
453 X       aperture_mmap,          /* mmap */
454 X       ddi_segmap,             /* segmap */
455 X       nochpoll,               /* poll */
456 X       ddi_prop_op,            /* cb_prop_op */
457 X       0,                      /* streamtab  */
458 X       D_NEW | D_MP | D_64BIT  /* Driver compatibility flag */
462 Xstatic dev_info_t *aperture_dip;       /* private copy of devinfo pointer */
465 X * getinfo(9E)
466 X */
467 X/*ARGSUSED*/
468 Xstatic int
469 Xaperture_getinfo
471 X#ifdef __STDC__
472 X       dev_info_t *dip,
473 X       ddi_info_cmd_t infocmd,
474 X       void *arg,
475 X       void **result
476 X#endif
478 X#ifndef __STDC__
479 X       dev_info_t *dip;
480 X       ddi_info_cmd_t infocmd;
481 X       void *arg;
482 X       void **result;
483 X#endif
485 X       int error;
487 X#ifdef APERTURE_DEBUG
489 X       cmn_err(CE_CONT, DEV_IDENT ":  entering getinfo()\n");
491 X#endif
493 X       switch (infocmd) {
494 X       case DDI_INFO_DEVT2DEVINFO:
495 X               *result = aperture_dip;
496 X               error = DDI_SUCCESS;
497 X               break;
498 X       case DDI_INFO_DEVT2INSTANCE:
499 X               *result = NULL;
500 X               error = DDI_SUCCESS;
501 X               break;
502 X       default:
503 X               error = DDI_FAILURE;
504 X       }
506 X#ifdef APERTURE_DEBUG
508 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving getinfo() = %d\n", error);
510 X#endif
512 X       return error;
516 X * identify(9E)
517 X */
518 X/*ARGSUSED*/
519 Xstatic int
520 Xaperture_identify
522 X#ifdef __STDC__
523 X       dev_info_t *dip
524 X#endif
526 X#ifndef __STDC__
527 X       dev_info_t *dip;
528 X#endif
530 X       int error;
532 X#ifdef APERTURE_DEBUG
534 X       cmn_err(CE_CONT, DEV_IDENT ":  entering identify()\n");
536 X#endif
538 X       if (strcmp(ddi_get_name(dip), DEV_IDENT))
539 X         error = 1 /* DDI_NOT_IDENTIFIED obsolete since SunOS 5.10 */ ;
540 X       else
541 X         error = 2 /* DDI_IDENTIFIED obsolete since SunOS 5.10 */ ;
543 X#ifdef APERTURE_DEBUG
545 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving identify() = %d\n", error);
547 X#endif
549 X       return error;
553 X * attach(9E)
554 X */
555 X/*ARGSUSED*/
556 Xstatic int
557 Xaperture_attach
559 X#ifdef __STDC__
560 X       dev_info_t *dip,
561 X       ddi_attach_cmd_t cmd
562 X#endif
564 X#ifndef __STDC__
565 X       dev_info_t *dip;
566 X       ddi_attach_cmd_t cmd;
567 X#endif
569 X       int error;
571 X#ifdef APERTURE_DEBUG
573 X       cmn_err(CE_CONT, DEV_IDENT ":  entering attach()\n");
575 X#endif
577 X       if (cmd != DDI_ATTACH)
578 X       {
580 X#ifdef APERTURE_DEBUG
582 X               cmn_err(CE_CONT, DEV_IDENT ":  not attach(, DDI_ATTACH)\n");
584 X#endif
586 X               error = DDI_FAILURE;
587 X       }
588 X       else
589 X       {
590 X               error = ddi_create_minor_node(dip, ddi_get_name(dip), S_IFCHR,
591 X                                             (minor_t)ddi_get_instance(dip),
592 X                                             NULL, 0 /* NODESPECIFIC_DEV obsolete since SunOS 5.10 */ );
594 X               if (error == DDI_SUCCESS)
595 X               {
596 X                       aperture_dip = dip;
597 X                       ddi_report_dev(dip);
598 X               }
599 X       }
601 X#ifdef APERTURE_DEBUG
603 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving attach() = %d\n", error);
605 X#endif
607 X       return error;
611 X * detach(9E)
612 X */
613 Xstatic int
614 Xaperture_detach
616 X#ifdef __STDC__
617 X       dev_info_t *dip,
618 X       ddi_detach_cmd_t cmd
619 X#endif
621 X#ifndef __STDC__
622 X       dev_info_t *dip;
623 X       ddi_detach_cmd_t cmd;
624 X#endif
626 X       int error;
628 X#ifdef APERTURE_DEBUG
630 X       cmn_err(CE_CONT, DEV_IDENT ":  entering detach()\n");
632 X#endif
634 X       if (cmd != DDI_DETACH)
635 X       {
636 X               error = DDI_FAILURE;
637 X       }
638 X       else
639 X       {
640 X               ddi_remove_minor_node(dip, NULL);
641 X               aperture_dip = NULL;
642 X               error = DDI_SUCCESS;
643 X       }
645 X#if APERTURE_DEBUG
647 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving detach() = %d\n", error);
649 X#endif
651 X       return error;
655 Xstatic struct dev_ops aperture_ops =
657 X       DEVO_REV,               /* revision */
658 X       0,                      /* refcnt  */
659 X       aperture_getinfo,       /* getinfo */
660 X       aperture_identify,      /* identify */
661 X       nulldev,                /* probe */
662 X       aperture_attach,        /* attach */
663 X       aperture_detach,        /* detach */
664 X       nodev,                  /* reset */
665 X       &aperture_cb_ops,       /* driver operations */
666 X       NULL                    /* bus operations */
670 Xstatic struct modldrv modldrv =
672 X       &mod_driverops,         /* mod_ops structure pointer */
673 X       DEV_BANNER,             /* driver banner string */
674 X       &aperture_ops,          /* dev_ops structure pointer */
678 Xstatic struct modlinkage modlinkage =
680 X       MODREV_1,               /* module API revision */
681 X       {
682 X               &modldrv,       /* module driver structure pointer */
683 X               NULL            /* list termination */
684 X       }
689 X * _init(9E)
690 X */
691 Xint
692 X_init
694 X#ifdef __STDC__
695 X       void
696 X#endif
699 X       int error;
701 X#ifdef APERTURE_DEBUG
703 X       cmn_err(CE_CONT, DEV_IDENT ":  entering _init()\n");
705 X#endif
707 X       error = mod_install(&modlinkage);
709 X#ifdef APERTURE_DEBUG
711 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving _init() = %d\n", error);
713 X#endif
715 X       return error;
719 X * _info(9E)
720 X */
721 Xint
722 X_info
724 X#ifdef __STDC__
725 X       struct modinfo *modinfop
726 X#endif
728 X#ifndef __STDC__
729 X       struct modinfo *modinfop;
730 X#endif
732 X       int error;
734 X#ifdef APERTURE_DEBUG
736 X       cmn_err(CE_CONT, DEV_IDENT ":  entering _info()\n");
738 X#endif
740 X       error = mod_info(&modlinkage, modinfop);
742 X#ifdef APERTURE_DEBUG
744 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving _info() = %d\n", error);
746 X#endif
748 X       return error;
752 X * _fini(9E)
753 X */
754 Xint
755 X_fini
757 X#ifdef __STDC__
758 X       void
759 X#endif
762 X       int error;
764 X#ifdef APERTURE_DEBUG
766 X       cmn_err(CE_CONT, DEV_IDENT ":  entering _fini()\n");
768 X#endif
770 X       error = mod_remove(&modlinkage);
772 X#ifdef APERTURE_DEBUG
774 X       cmn_err(CE_CONT, DEV_IDENT ":  leaving _fini() = %d\n", error);
776 X#endif
778 X       return error;
780 END-of-./aperture/aperture.c
781 echo x - ./aperture/aperture.conf
782 sed 's/^X//' >./aperture/aperture.conf << 'END-of-./aperture/aperture.conf'
784 X# Copyright 1994 Doug Anson, danson@lgc.com & David Holland, davidh@use.com
786 X# File:   aperture.conf
787 X# Author: Doug Anson (danson@lgc.com)
788 X# 
789 X# Modified: David Holland (davidh@use.com)
790 X# Log:     Change comments             02/23/94
791 X#          Change defaults/comments    09/25/94
793 X# Modified: Marc Aurele La France (tsi@xfree86.org)
794 X# Log:      SPARC changes              2001.09
796 X# Purpose:  This conf file is used by the aperture driver.
798 Xname="aperture" parent="pseudo";
799 END-of-./aperture/aperture.conf
800 echo x - ./aperture/devlink.tab
801 sed 's/^X//' >./aperture/devlink.tab << 'END-of-./aperture/devlink.tab'
802 X# The following entry is for the aperture driver
803 Xtype=ddi_pseudo;name=aperture  fbs/\M0
804 END-of-./aperture/devlink.tab
805 exit