 f4814901af
			
		
	
	
		f4814901af
		
	
	
	
	
		
			
			This patch moves more includes (most of them, to tell the truth) to common/include directory. This completes the list of includes needed to compile current trunk with the new libc (but to do that you need more patches in queue). This patch also contains some modification (for compilation with new headers) to the common includes under __NBSD_LIBC, the define used in mk script to specialize compilation with new includes.
		
			
				
	
	
		
			45 lines
		
	
	
		
			880 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			880 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #include <minix/types.h>
 | |
| #include <minix/ipc.h>
 | |
| 
 | |
| #define ACPI_REQ_GET_IRQ	1
 | |
| #define ACPI_REQ_MAP_BRIDGE	2
 | |
| 
 | |
| struct acpi_request_hdr {
 | |
| 	endpoint_t 	m_source; /* message header */
 | |
| 	u32_t		request;
 | |
| };
 | |
| 
 | |
| /* 
 | |
|  * Message to request dev/pin translation to IRQ by acpi using the acpi routing
 | |
|  * tables
 | |
|  */
 | |
| struct acpi_get_irq_req {
 | |
| 	struct acpi_request_hdr	hdr;
 | |
| 	u32_t			bus;
 | |
| 	u32_t			dev;
 | |
| 	u32_t			pin;
 | |
| 	u32_t			__padding[4];
 | |
| };
 | |
| 
 | |
| /* response from acpi to acpi_get_irq_req */
 | |
| struct acpi_get_irq_resp {
 | |
| 	endpoint_t 	m_source; /* message header */
 | |
| 	i32_t		irq;
 | |
| 	u32_t		__padding[7];
 | |
| };
 | |
| 
 | |
| /* message format for pci bridge mappings to acpi */
 | |
| struct acpi_map_bridge_req {
 | |
| 	struct acpi_request_hdr	hdr;
 | |
| 	u32_t	primary_bus;
 | |
| 	u32_t	secondary_bus;
 | |
| 	u32_t	device;
 | |
| 	u32_t	__padding[4];
 | |
| };
 | |
| 
 | |
| struct acpi_map_bridge_resp {
 | |
| 	endpoint_t 	m_source; /* message header */
 | |
| 	int		err;
 | |
| 	u32_t		__padding[7];
 | |
| };
 |