Changeset View
Changeset View
Standalone View
Standalone View
sys/arm64/include/resource.h
| Show All 23 Lines | |||||
| * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||||
| * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | ||||
| * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
| * SUCH DAMAGE. | * SUCH DAMAGE. | ||||
| * | * | ||||
| * $FreeBSD$ | * $FreeBSD$ | ||||
| */ | */ | ||||
| #ifdef __arm__ | |||||
| #include <arm/resource.h> | |||||
| #else /* !__arm__ */ | |||||
| #ifndef _MACHINE_RESOURCE_H_ | #ifndef _MACHINE_RESOURCE_H_ | ||||
| #define _MACHINE_RESOURCE_H_ 1 | #define _MACHINE_RESOURCE_H_ 1 | ||||
| /* | /* | ||||
| * Definitions of resource types for Intel Architecture machines | * Definitions of resource types for Intel Architecture machines | ||||
| * with support for legacy ISA devices and drivers. | * with support for legacy ISA devices and drivers. | ||||
| */ | */ | ||||
| #define SYS_RES_IRQ 1 /* interrupt lines */ | #define SYS_RES_IRQ 1 /* interrupt lines */ | ||||
| #define SYS_RES_DRQ 2 /* isa dma lines */ | #define SYS_RES_DRQ 2 /* isa dma lines */ | ||||
| #define SYS_RES_MEMORY 3 /* i/o memory */ | #define SYS_RES_MEMORY 3 /* i/o memory */ | ||||
| #define SYS_RES_IOPORT 4 /* i/o ports */ | #define SYS_RES_IOPORT 4 /* i/o ports */ | ||||
| #define SYS_RES_GPIO 5 /* general purpose i/o */ | #define SYS_RES_GPIO 5 /* general purpose i/o */ | ||||
| #ifdef NEW_PCIB | #ifdef NEW_PCIB | ||||
| #define PCI_RES_BUS 6 /* PCI bus numbers */ | #define PCI_RES_BUS 6 /* PCI bus numbers */ | ||||
| #endif | #endif | ||||
| #endif /* !_MACHINE_RESOURCE_H_ */ | #endif /* !_MACHINE_RESOURCE_H_ */ | ||||
| #endif /* !__arm__ */ | |||||