Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/broadcom/bcm2835/bcm2835_mbox_prop.h
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | struct msg_set_power_state { | ||||
} body; | } body; | ||||
uint32_t end_tag; | uint32_t end_tag; | ||||
}; | }; | ||||
/* Sets the power state for a given device */ | /* Sets the power state for a given device */ | ||||
int bcm2835_mbox_set_power_state(uint32_t, boolean_t); | int bcm2835_mbox_set_power_state(uint32_t, boolean_t); | ||||
#define BCM2835_MBOX_CLOCK_ID_EMMC 0x00000001 | #define BCM2835_MBOX_CLOCK_ID_EMMC 0x00000001 | ||||
#define BCM2835_MBOX_CLOCK_ID_UART 0x00000002 | |||||
#define BCM2835_MBOX_CLOCK_ID_ARM 0x00000003 | |||||
#define BCM2835_MBOX_CLOCK_ID_CORE 0x00000004 | |||||
#define BCM2835_MBOX_CLOCK_ID_V3D 0x00000005 | |||||
#define BCM2835_MBOX_CLOCK_ID_H264 0x00000006 | |||||
#define BCM2835_MBOX_CLOCK_ID_ISP 0x00000007 | |||||
#define BCM2835_MBOX_CLOCK_ID_SDRAM 0x00000008 | |||||
#define BCM2835_MBOX_CLOCK_ID_PIXEL 0x00000009 | |||||
#define BCM2835_MBOX_CLOCK_ID_PWM 0x0000000a | |||||
#define BCM2838_MBOX_CLOCK_ID_EMMC2 0x0000000c | #define BCM2838_MBOX_CLOCK_ID_EMMC2 0x0000000c | ||||
#define BCM2835_MBOX_TAG_GET_CLOCK_RATE 0x00030002 | #define BCM2835_MBOX_TAG_GET_CLOCK_RATE 0x00030002 | ||||
#define BCM2835_MBOX_TAG_SET_CLOCK_RATE 0x00038002 | |||||
#define BCM2835_MBOX_TAG_GET_MAX_CLOCK_RATE 0x00030004 | |||||
#define BCM2835_MBOX_TAG_GET_MIN_CLOCK_RATE 0x00030007 | |||||
struct msg_get_clock_rate { | struct msg_get_clock_rate { | ||||
struct bcm2835_mbox_hdr hdr; | |||||
struct bcm2835_mbox_tag_hdr tag_hdr; | |||||
union { | |||||
struct { | |||||
uint32_t clock_id; | |||||
} req; | |||||
struct { | |||||
uint32_t clock_id; | |||||
uint32_t rate_hz; | |||||
} resp; | |||||
} body; | |||||
uint32_t end_tag; | |||||
}; | |||||
struct msg_set_clock_rate { | |||||
struct bcm2835_mbox_hdr hdr; | |||||
struct bcm2835_mbox_tag_hdr tag_hdr; | |||||
union { | |||||
struct { | |||||
uint32_t clock_id; | |||||
uint32_t rate_hz; | |||||
} req; | |||||
struct { | |||||
uint32_t clock_id; | |||||
uint32_t rate_hz; | |||||
} resp; | |||||
} body; | |||||
uint32_t end_tag; | |||||
}; | |||||
struct msg_get_max_clock_rate { | |||||
struct bcm2835_mbox_hdr hdr; | |||||
struct bcm2835_mbox_tag_hdr tag_hdr; | |||||
union { | |||||
struct { | |||||
uint32_t clock_id; | |||||
} req; | |||||
struct { | |||||
uint32_t clock_id; | |||||
uint32_t rate_hz; | |||||
} resp; | |||||
} body; | |||||
uint32_t end_tag; | |||||
}; | |||||
struct msg_get_min_clock_rate { | |||||
struct bcm2835_mbox_hdr hdr; | struct bcm2835_mbox_hdr hdr; | ||||
struct bcm2835_mbox_tag_hdr tag_hdr; | struct bcm2835_mbox_tag_hdr tag_hdr; | ||||
union { | union { | ||||
struct { | struct { | ||||
uint32_t clock_id; | uint32_t clock_id; | ||||
} req; | } req; | ||||
struct { | struct { | ||||
uint32_t clock_id; | uint32_t clock_id; | ||||
▲ Show 20 Lines • Show All 320 Lines • Show Last 20 Lines |