Changeset View
Changeset View
Standalone View
Standalone View
sys/contrib/vchiq/interface/vchiq_arm/vchiq_pagelist.h
| Show All 36 Lines | |||||
| #ifndef PAGE_SIZE | #ifndef PAGE_SIZE | ||||
| #define PAGE_SIZE 4096 | #define PAGE_SIZE 4096 | ||||
| #endif | #endif | ||||
| #define PAGELIST_WRITE 0 | #define PAGELIST_WRITE 0 | ||||
| #define PAGELIST_READ 1 | #define PAGELIST_READ 1 | ||||
| #define PAGELIST_READ_WITH_FRAGMENTS 2 | #define PAGELIST_READ_WITH_FRAGMENTS 2 | ||||
| typedef struct pagelist_struct { | typedef struct pagelist_struct { | ||||
| unsigned long length; | uint32_t length; | ||||
| unsigned short type; | uint16_t type; | ||||
| unsigned short offset; | uint16_t offset; | ||||
| unsigned long addrs[1]; /* N.B. 12 LSBs hold the number of following | uint32_t addrs[1]; /* N.B. 12 LSBs hold the number of following | ||||
| pages at consecutive addresses. */ | pages at consecutive addresses. */ | ||||
| } PAGELIST_T; | } PAGELIST_T; | ||||
| #endif /* VCHIQ_PAGELIST_H */ | #endif /* VCHIQ_PAGELIST_H */ | ||||