1116551Sjake/*- 2116551Sjake * Copyright (c) 2003 Jake Burkholder. 3116551Sjake * All rights reserved. 4116551Sjake * 5116551Sjake * Redistribution and use in source and binary forms, with or without 6116551Sjake * modification, are permitted provided that the following conditions 7116551Sjake * are met: 8116551Sjake * 1. Redistributions of source code must retain the above copyright 9116551Sjake * notice, this list of conditions and the following disclaimer. 10116551Sjake * 2. Redistributions in binary form must reproduce the above copyright 11116551Sjake * notice, this list of conditions and the following disclaimer in the 12116551Sjake * documentation and/or other materials provided with the distribution. 13116551Sjake * 14116551Sjake * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15116551Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16116551Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17116551Sjake * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18116551Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19116551Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20116551Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21116551Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22116551Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23116551Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24116551Sjake * SUCH DAMAGE. 25116551Sjake * 26116551Sjake * $FreeBSD$ 27116551Sjake */ 28116551Sjake 29116551Sjake#ifndef _DEV_OFW_OPENPROMIO_H_ 30116551Sjake#define _DEV_OFW_OPENPROMIO_H_ 31116551Sjake 32116551Sjake#include <sys/ioccom.h> 33116551Sjake 34116551Sjakestruct openpromio { 35116551Sjake uint32_t oprom_size; 36116551Sjake char oprom_array[]; 37116551Sjake}; 38116551Sjake 39116551Sjake#define OPROMNEXT _IO('O', 1) 40116551Sjake#define OPROMCHILD _IO('O', 2) 41116551Sjake#define OPROMGETPROP _IO('O', 3) 42116551Sjake#define OPROMNXTPROP _IO('O', 4) 43116551Sjake 44116551Sjake#define OPROMMAXPARAM 4096 45116551Sjake 46116551Sjake#endif 47