devinfo_var.h revision 75726
160107Sobrien/*-
29740Sjkh * Copyright (c) 2000 Michael Smith
39740Sjkh * Copyright (c) 2000 BSDi
49740Sjkh * All rights reserved.
59740Sjkh *
69740Sjkh * Redistribution and use in source and binary forms, with or without
732822Syokota * modification, are permitted provided that the following conditions
89740Sjkh * are met:
99740Sjkh * 1. Redistributions of source code must retain the above copyright
109740Sjkh *    notice, this list of conditions and the following disclaimer.
1143334Syokota * 2. Redistributions in binary form must reproduce the above copyright
1243334Syokota *    notice, this list of conditions and the following disclaimer in the
1343334Syokota *    documentation and/or other materials provided with the distribution.
1443334Syokota *
1543334Syokota * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1643334Syokota * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1743334Syokota * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1843334Syokota * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1943334Syokota * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
209740Sjkh * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
219740Sjkh * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
229740Sjkh * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
239740Sjkh * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
249740Sjkh * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
259740Sjkh * SUCH DAMAGE.
269740Sjkh *
2743334Syokota *	$FreeBSD: head/lib/libdevinfo/devinfo_var.h 75726 2001-04-20 05:53:30Z msmith $
289740Sjkh */
299740Sjkh
309740Sjkh#include <sys/rman.h>
319740Sjkh#include <sys/bus.h>
3243334Syokota
3343334Syokota/*
349740Sjkh * This is defined by the version 1 interface.
359740Sjkh */
369740Sjkh#define DEVINFO_STRLEN	32
379740Sjkh
389740Sjkh/*
399740Sjkh * Devices.
409740Sjkh *
419740Sjkh * Internal structure contains string buffers and list linkage;
429740Sjkh */
439740Sjkhstruct devinfo_i_dev {
449740Sjkh	struct devinfo_dev		dd_dev;
4543334Syokota	char				dd_name[32];
4643334Syokota	char				dd_desc[32];
479740Sjkh	char				dd_drivername[32];
489740Sjkh	TAILQ_ENTRY(devinfo_i_dev)	dd_link;
4943334Syokota};
5043334Syokota
519740Sjkh/*
529740Sjkh * Resources.
539740Sjkh *
549740Sjkh * Internal structures contain string buffers and list linkage;
559740Sjkh */
569740Sjkhstruct devinfo_i_rman {
579740Sjkh	struct devinfo_rman		dm_rman;
589740Sjkh	char				dm_desc[32];
5938140Syokota	TAILQ_ENTRY(devinfo_i_rman)	dm_link;
609740Sjkh};
6143334Syokota
629740Sjkhstruct devinfo_i_res {
6332822Syokota	struct devinfo_res		dr_res;
649740Sjkh	TAILQ_ENTRY(devinfo_i_res)	dr_link;
659740Sjkh};
669740Sjkh