| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: rmixl_firmware.h,v 1.1.2.1 2009/09/13 03:27:38 cliff Exp $ */ | | 1 | /* $NetBSD: rmixl_firmware.h,v 1.1.2.2 2009/11/09 10:02:48 cliff Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 2009 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 2009 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Cliff Neighbors | | 8 | * by Cliff Neighbors |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -100,26 +100,31 @@ typedef struct rmixlfw_info { | | | @@ -100,26 +100,31 @@ typedef struct rmixlfw_info { |
100 | uint64_t board_serial_number; | | 100 | uint64_t board_serial_number; |
101 | uint64_t psb_physaddr_map; | | 101 | uint64_t psb_physaddr_map; |
102 | uint64_t xlr_loaderip_config; | | 102 | uint64_t xlr_loaderip_config; |
103 | uint64_t bldr_envp; | | 103 | uint64_t bldr_envp; |
104 | uint64_t avail_mem_map; | | 104 | uint64_t avail_mem_map; |
105 | } rmixlfw_info_t; | | 105 | } rmixlfw_info_t; |
106 | | | 106 | |
107 | | | 107 | |
108 | #define RMIXLFW_MMAP_MAX_MMAPS 32 | | 108 | #define RMIXLFW_MMAP_MAX_MMAPS 32 |
109 | | | 109 | |
110 | #define RMIXLFW_MMAP_TYPE_RAM 1 | | 110 | #define RMIXLFW_MMAP_TYPE_RAM 1 |
111 | #define RMIXLFW_MMAP_TYPE_ROM 2 | | 111 | #define RMIXLFW_MMAP_TYPE_ROM 2 |
112 | #define RMIXLFW_MMAP_TYPE_RESERVED 3 | | 112 | #define RMIXLFW_MMAP_TYPE_RESERVED 3 |
| | | 113 | #define RMIXLFW_MMAP_TYPE_DEV_IO 0x10 |
| | | 114 | #define RMIXLFW_MMAP_TYPE_PCI_IO 0x11 |
| | | 115 | #define RMIXLFW_MMAP_TYPE_PCI_CFG 0x12 |
| | | 116 | #define RMIXLFW_MMAP_TYPE_PCI_MEM 0x13 |
| | | 117 | #define RMIXLFW_MMAP_TYPE_UNKNOWN 0xff |
113 | | | 118 | |
114 | /* | | 119 | /* |
115 | * struct at psb_mem_map, psb_physaddr_map, avail_mem_map | | 120 | * struct at psb_mem_map, psb_physaddr_map, avail_mem_map |
116 | */ | | 121 | */ |
117 | typedef struct rmixlfw_mmap { | | 122 | typedef struct rmixlfw_mmap { |
118 | uint32_t nmmaps; | | 123 | uint32_t nmmaps; |
119 | struct rmixlfw_mmap_entry { | | 124 | struct rmixlfw_mmap_entry { |
120 | uint64_t start; | | 125 | uint64_t start; |
121 | uint64_t size; | | 126 | uint64_t size; |
122 | uint32_t type; | | 127 | uint32_t type; |
123 | } entry[RMIXLFW_MMAP_MAX_MMAPS]; | | 128 | } entry[RMIXLFW_MMAP_MAX_MMAPS]; |
124 | } rmixlfw_mmap_t; | | 129 | } rmixlfw_mmap_t; |
125 | | | 130 | |