Annotation of kernel/bsd/dev/ppc/busses.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
        !             3:  *
        !             4:  * @APPLE_LICENSE_HEADER_START@
        !             5:  * 
        !             6:  * Portions Copyright (c) 1999 Apple Computer, Inc.  All Rights
        !             7:  * Reserved.  This file contains Original Code and/or Modifications of
        !             8:  * Original Code as defined in and that are subject to the Apple Public
        !             9:  * Source License Version 1.1 (the "License").  You may not use this file
        !            10:  * except in compliance with the License.  Please obtain a copy of the
        !            11:  * License at http://www.apple.com/publicsource and read it before using
        !            12:  * this file.
        !            13:  * 
        !            14:  * The Original Code and all software distributed under the License are
        !            15:  * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
        !            16:  * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
        !            17:  * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
        !            18:  * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
        !            19:  * License for the specific language governing rights and limitations
        !            20:  * under the License.
        !            21:  * 
        !            22:  * @APPLE_LICENSE_HEADER_END@
        !            23:  */
        !            24: 
        !            25: 
        !            26: // move to event defs
        !            27: #define VC_LED_CAPSLOCK 1
        !            28: #define VC_LED_SCROLLLOCK 2
        !            29: #define VC_LED_NUMLOCK 4
        !            30: 
        !            31: 
        !            32: struct bus_device {
        !            33:        int     unused;
        !            34: };
        !            35: #ifndef FALSE
        !            36: #define FALSE 0
        !            37: #endif
        !            38: #ifndef TRUE
        !            39: #define TRUE 1
        !            40: #endif
        !            41: #ifndef NULL
        !            42: #define NULL 0
        !            43: #endif
        !            44: 
        !            45: #define NADB 1
        !            46: #define NCUDA 1
        !            47: 
        !            48: typedef int io_return_t;
        !            49: typedef int io_req_t;
        !            50: typedef int dev_mode_t;
        !            51: typedef int dev_flavor_t;
        !            52: typedef int dev_status_t;
        !            53: 
        !            54: #define D_SUCCESS       0
        !            55: #define D_IO_ERROR      2500    /* hardware IO error */
        !            56: #define D_WOULD_BLOCK       2501    /* would block, but D_NOWAIT set */
        !            57: #define D_NO_SUCH_DEVICE    2502    /* no such device */
        !            58: #define D_ALREADY_OPEN      2503    /* exclusive-use device already open */
        !            59: #define D_DEVICE_DOWN       2504    /* device has been shut down */
        !            60: #define D_INVALID_OPERATION 2505    /* bad operation for device */
        !            61: #define D_INVALID_RECNUM    2506    /* invalid record (block) number */
        !            62: #define D_INVALID_SIZE      2507    /* invalid IO size */
        !            63: #define D_NO_MEMORY     2508    /* memory allocation failure */
        !            64: #define D_READ_ONLY     2509    /* device cannot be written to */
        !            65: #define D_OUT_OF_BAND       2510    /* out-of-band condition on device */
        !            66: #define D_NOT_CLONED        2511    /* device cannot be cloned */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.