Package the dumpcisfile functionality into a new dumpcis command.

Also, don't build pccardc now.  I've left it in place for people that
wish to build it to test experimental support for oldcard
functionality that may have been lost in newcard.
This commit is contained in:
Warner Losh 2006-10-18 21:09:43 +00:00
parent 876e9ce41a
commit 42e49837d9
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=163491
4 changed files with 97 additions and 1 deletions

View file

@ -1,6 +1,6 @@
# Makefile for pccardc/pccardd.
# $FreeBSD$
SUBDIR= pccardc
SUBDIR= dumpcis
.include <bsd.subdir.mk>

View file

@ -0,0 +1,13 @@
# pccardc Makefile
#
# $FreeBSD$
.PATH: ${.CURDIR}/../pccardd ${.CURDIR}/../pccardc
PROG= dumpcis
MAN= dumpcis.8
SRCS= main.c dumpcis.c dumpcisfile.c readcis.c printcis.c
CFLAGS+= -I${.CURDIR}/../pccardd -I${.CURDIR}/../pccardc
.include <bsd.prog.mk>

View file

@ -0,0 +1,49 @@
.\"
.\" Copyright (c) 2006 M. Warner Losh <imp@FreeBSD.org>
.\" All rights reserved.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. The name of the author may not be used to endorse or promote products
.\" derived from this software without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
.\" $FreeBSD$
.\"
.Dd October 18, 2006
.Dt DUMPCIS 8
.Os
.Sh NAME
.Nm dumpcis
.Nd PC Card and Cardbus (PCMCIA) CIS display tool
.Sh SYNOPSIS
.Nm
.Ar fn
.Sh DESCRIPTION
The
.Nm
utility translates a raw CIS stream into human readable form.
.Sh SEE ALSO
.Xr cardbus 4 ,
.Xr cbb 4 ,
.Xr pccard 4
.Sh AUTHORS
.An -nosplit
The original version was written by
.An Warner Losh Aq imp@freebsd.org .

View file

@ -0,0 +1,34 @@
/*
* Copyright (c) 2006 M. Warner Losh. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
int dumpcisfile_main(int, char **);
int
main(int argc, char **argv)
{
return dumpcisfile_main(argc, argv);
}