pcihp.h (7c478bd9) pcihp.h (70025d76)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 6 unchanged lines hidden (view full) ---

15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 6 unchanged lines hidden (view full) ---

15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright (c) 1999-2001 by Sun Microsystems, Inc.
24 * All rights reserved.
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#ifndef _SYS_HOTPLUG_PCI_PCIHP_H
28#define _SYS_HOTPLUG_PCI_PCIHP_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
25 */
26
27#ifndef _SYS_HOTPLUG_PCI_PCIHP_H
28#define _SYS_HOTPLUG_PCI_PCIHP_H
29
30#pragma ident "%Z%%M% %I% %E% SMI"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
36#include <sys/hotplug/pci/pcihp_impl.h>
37
36/*
37 * Interfaces exported by PCI Nexus extension module, kernel/misc/pcihp.
38 */
39int pcihp_init(dev_info_t *);
40int pcihp_uninit(dev_info_t *);
41int pcihp_info(dev_info_t *, ddi_info_cmd_t, void *, void **);
38/*
39 * Interfaces exported by PCI Nexus extension module, kernel/misc/pcihp.
40 */
41int pcihp_init(dev_info_t *);
42int pcihp_uninit(dev_info_t *);
43int pcihp_info(dev_info_t *, ddi_info_cmd_t, void *, void **);
42
43struct cb_ops *pcihp_get_cb_ops(void);
44
44struct cb_ops *pcihp_get_cb_ops(void);
45
45/* exported data definitions */
46extern struct cb_ops pcihp_cb_ops;
47
48/* definitions for minor numbers */
49#define PCIHP_AP_MINOR_NUM(x, y) (((uint_t)(x) << 8) | \
50 ((y) & 0xFF))
51#define PCIHP_AP_MINOR_NUM_TO_PCI_DEVNUM(x) ((x) & 0xFF)
52#define PCIHP_AP_MINOR_NUM_TO_INSTANCE(x) ((x) >> 8)
53#define PCIHP_DEVCTL_MINOR 0xFF
54#define PCIHP_DEBUG_MINOR 0xFE
55

--- 31 unchanged lines hidden ---
46/* definitions for minor numbers */
47#define PCIHP_AP_MINOR_NUM(x, y) (((uint_t)(x) << 8) | \
48 ((y) & 0xFF))
49#define PCIHP_AP_MINOR_NUM_TO_PCI_DEVNUM(x) ((x) & 0xFF)
50#define PCIHP_AP_MINOR_NUM_TO_INSTANCE(x) ((x) >> 8)
51#define PCIHP_DEVCTL_MINOR 0xFF
52#define PCIHP_DEBUG_MINOR 0xFE
53

--- 31 unchanged lines hidden ---