Annotation of driverkit/Config/ConfigUtils.h, revision 1.1.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: /*     Copyright (c) 1991 NeXT Computer, Inc.  All rights reserved. 
                     25:  *
                     26:  * ConfigUtils.h - prototypes for config_utils.c.
                     27:  *
                     28:  * HISTORY
                     29:  * 12-Apr-91    Doug Mitchell at NeXT
                     30:  *      Created.
                     31:  */
                     32: 
                     33: #ifndef        _CONFIG_CONFIGUTILS_H_
                     34: #define _CONFIG_CONFIGUTILS_H_
                     35: 
                     36: #import <driverkit/return.h>
                     37: #import <driverkit/driverTypes.h>
                     38: 
                     39: /*
                     40:  * Search key specification for get_driver_entry() and get_dev_entry().
                     41:  */
                     42: typedef enum {
                     43:        SK_DRIVER_PORT,
                     44:        SK_DEV_PORT,
                     45:        SK_SIG_PORT,
                     46:        SK_DEVNUM,
                     47:        SK_FID,
                     48:        SK_DEV_INDEX
                     49: } dev_search_key_t;
                     50: 
                     51: #define FID_NULL       ((file_id_t)0)
                     52: #define DEV_NUM_NULL   ((IODeviceNumber)0)
                     53: 
                     54: driver_entry_t *get_driver_entry(
                     55:        dev_search_key_t search_key,
                     56:        port_t search_port,
                     57:        IODeviceNumber dev_number,
                     58:        file_id_t fid,
                     59:        IODeviceType dev_type,
                     60:        IOSlotId slot_id,
                     61:        dev_entry_t **dev_entrypp);             // returned 
                     62: dev_entry_t *get_dev_entry(
                     63:        dev_search_key_t search_key,
                     64:        driver_entry_t *driver_entry,
                     65:        port_t search_port,
                     66:        IODeviceNumber dev_number,
                     67:        IODeviceType device_type,
                     68:        IOSlotId slot_id);
                     69: driver_entry_t *create_driver_entry(
                     70:        file_id_t fid,
                     71:        filename_t filename);
                     72: IOConfigReturn free_driver_entry(
                     73:        driver_entry_t *driver_entry);
                     74: dev_entry_t *create_dev_entry(
                     75:        driver_entry_t *driver_entry, 
                     76:        IODeviceNumber dev_number,
                     77:        IODeviceType dev_type, 
                     78:        IOSlotId slot_id);
                     79: IOConfigReturn free_dev_entry(
                     80:        dev_entry_t *dev_entry);
                     81: void get_driver_list_lock();
                     82: void release_driver_list_lock();
                     83: 
                     84: extern IONamedValue dev_returns[];
                     85: extern IONamedValue config_returns[];
                     86: 
                     87: #endif _CONFIG_CONFIG_UTILS_H_

unix.superglobalmegacorp.com

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