+++ /dev/null
-/* $NetBSD: dig64.h,v 1.1 2006/04/07 14:21:18 cherry Exp $ */\r
-\r
-/*-\r
- * Copyright (c) 2002 Marcel Moolenaar\r
- * All rights reserved.\r
- *\r
- * Redistribution and use in source and binary forms, with or without\r
- * modification, are permitted provided that the following conditions\r
- * are met:\r
- *\r
- * 1. Redistributions of source code must retain the above copyright\r
- * notice, this list of conditions and the following disclaimer.\r
- * 2. Redistributions in binary form must reproduce the above copyright\r
- * notice, this list of conditions and the following disclaimer in the\r
- * documentation and/or other materials provided with the distribution.\r
- *\r
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR\r
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES\r
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.\r
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,\r
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT\r
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\r
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\r
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\r
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF\r
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\r
- *\r
- * $FreeBSD$\r
- */\r
-\r
-#ifndef _MACHINE_DIG64_H_\r
-#define _MACHINE_DIG64_H_\r
-\r
-struct dig64_gas {\r
- uint8_t addr_space;\r
- uint8_t bit_width;\r
- uint8_t bit_offset;\r
- uint8_t _reserved_;\r
- /*\r
- * XXX using a 64-bit type for the address would cause padding and\r
- * using __packed would cause unaligned accesses...\r
- */\r
- uint32_t addr_low;\r
- uint32_t addr_high;\r
-};\r
-\r
-struct dig64_hcdp_entry {\r
- uint8_t type;\r
-#define DIG64_HCDP_CONSOLE 0\r
-#define DIG64_HCDP_DBGPORT 1\r
- uint8_t databits;\r
- uint8_t parity;\r
- uint8_t stopbits;\r
- uint8_t pci_segment;\r
- uint8_t pci_bus;\r
- uint8_t pci_device:5;\r
- uint8_t _reserved1_:3;\r
- uint8_t pci_function:3;\r
- uint8_t _reserved2_:3;\r
- uint8_t interrupt:1;\r
- uint8_t pci_flag:1;\r
- /*\r
- * XXX using a 64-bit type for the baudrate would cause padding and\r
- * using __packed would cause unaligned accesses...\r
- */\r
- uint32_t baud_low;\r
- uint32_t baud_high;\r
- struct dig64_gas address;\r
- uint16_t pci_devid;\r
- uint16_t pci_vendor;\r
- uint32_t irq;\r
- uint32_t pclock;\r
- uint8_t pci_interface;\r
- uint8_t _reserved3_[7];\r
-};\r
-\r
-struct dig64_hcdp_table {\r
- char signature[4];\r
-#define HCDP_SIGNATURE "HCDP"\r
- uint32_t length;\r
- uint8_t revision;\r
- uint8_t checksum;\r
- char oem_id[6];\r
- char oem_tbl_id[8];\r
- uint32_t oem_rev;\r
- char creator_id[4];\r
- uint32_t creator_rev;\r
- uint32_t entries;\r
- struct dig64_hcdp_entry entry[1];\r
-};\r
-\r
-#endif\r