[BACK]Return to conf.h CVS log [TXT][DIR] Up to [local] / sys / arch / sparc / include

Annotation of sys/arch/sparc/include/conf.h, Revision 1.1.1.1

1.1       nbrk        1: /*     $OpenBSD: conf.h,v 1.21 2005/12/31 21:22:34 miod Exp $  */
                      2: /*     $NetBSD: conf.h,v 1.8 1996/12/31 07:12:43 mrg Exp $     */
                      3:
                      4: /*
                      5:  * Copyright (c) 1996 Christos Zoulas.  All rights reserved.
                      6:  *
                      7:  * Redistribution and use in source and binary forms, with or without
                      8:  * modification, are permitted provided that the following conditions
                      9:  * are met:
                     10:  * 1. Redistributions of source code must retain the above copyright
                     11:  *    notice, this list of conditions and the following disclaimer.
                     12:  * 2. Redistributions in binary form must reproduce the above copyright
                     13:  *    notice, this list of conditions and the following disclaimer in the
                     14:  *    documentation and/or other materials provided with the distribution.
                     15:  * 3. All advertising materials mentioning features or use of this software
                     16:  *    must display the following acknowledgement:
                     17:  *     This product includes software developed by Christos Zoulas.
                     18:  * 4. The name of the author may not be used to endorse or promote products
                     19:  *    derived from this software without specific prior written permission.
                     20:  *
                     21:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
                     22:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
                     23:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
                     24:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
                     25:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
                     26:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
                     27:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
                     28:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
                     29:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
                     30:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
                     31:  */
                     32:
                     33: #define mmread mmrw
                     34: #define mmwrite mmrw
                     35: cdev_decl(mm);
                     36:
                     37: /* open, close, ioctl */
                     38: #define        cdev_openprom_init(c,n) { \
                     39:        dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
                     40:        (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
                     41:        (dev_type_stop((*))) nullop, 0, (dev_type_poll((*))) enodev, \
                     42:        (dev_type_mmap((*))) enodev }
                     43:
                     44: cdev_decl(openprom);
                     45:
                     46: cdev_decl(zs);
                     47:
                     48: bdev_decl(fd);
                     49: cdev_decl(fd);
                     50:
                     51: /* open, close, read, write, ioctl, poll */
                     52: #define        cdev_gen_init(c,n) { \
                     53:        dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
                     54:        dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) nullop, \
                     55:        0, dev_init(c,n,poll), (dev_type_mmap((*))) enodev }
                     56:
                     57: bdev_decl(xd);
                     58: cdev_decl(xd);
                     59:
                     60: bdev_decl(xy);
                     61: cdev_decl(xy);
                     62:
                     63: bdev_decl(presto);
                     64: cdev_decl(presto);
                     65:
                     66: /* open, close, write, ioctl */
                     67: #define        cdev_bpp_init(c,n) { \
                     68:        dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
                     69:        dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) nullop, \
                     70:        0, seltrue, (dev_type_mmap((*))) enodev }
                     71:
                     72: cdev_decl(bpp);
                     73:
                     74: cdev_decl(mtty);
                     75: cdev_decl(mbpp);
                     76:
                     77: cdev_decl(stty);
                     78: cdev_decl(sbpp);
                     79:
                     80: /* open, close, ioctl */
                     81: #define        cdev_scf_init(c,n) { \
                     82:        dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
                     83:        (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
                     84:        (dev_type_stop((*))) nullop, 0, seltrue, \
                     85:        (dev_type_mmap((*))) enodev }
                     86: cdev_decl(scf);
                     87:
                     88: cdev_decl(com);
                     89:
                     90: /* open, close, ioctl, read, write */
                     91: #define        cdev_flash_init(c,n) { \
                     92:        dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read),    \
                     93:        dev_init(c,n,write), dev_init(c,n,ioctl),                       \
                     94:        (dev_type_stop((*))) nullop, 0, seltrue, (dev_type_mmap((*))) enodev }
                     95: cdev_decl(flash);
                     96:
                     97: #define        cdev_fga_init(c,n) { \
                     98:        dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
                     99:        (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
                    100:        (dev_type_stop((*))) nullop, 0, seltrue, \
                    101:        (dev_type_mmap((*))) enodev }
                    102: cdev_decl(fga);
                    103:
                    104: #define        cdev_daadio_init(c,n) { \
                    105:        dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
                    106:        (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
                    107:        (dev_type_stop((*))) nullop, 0, seltrue, \
                    108:        (dev_type_mmap((*))) enodev }
                    109: cdev_decl(daadio);
                    110:
                    111: /* open, close, write, ioctl, kqueue */
                    112: #define cdev_apm_init(c,n) { \
                    113:         dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
                    114:         (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \
                    115:        (dev_type_stop((*))) enodev, 0, (dev_type_poll((*))) enodev, \
                    116:        (dev_type_mmap((*))) enodev, 0, D_KQFILTER, dev_init(c,n,kqfilter) }
                    117: cdev_decl(apm);

CVSweb