23 #include <linux/string.h>
37 static inline s64 beat_downcount_of_interrupt(
u64 plug_id)
42 static inline s64 beat_set_interrupt_mask(
u64 index,
46 val0, val1, val2, val3);
49 static inline s64 beat_destruct_irq_plug(
u64 plug_id)
54 static inline s64 beat_construct_and_connect_irq_plug(
u64 plug_id,
61 static inline s64 beat_detect_pending_interrupts(
u64 index,
u64 *retbuf)
66 static inline s64 beat_pause(
u64 style)
83 bitmask, hpte_v, hpte_r);
88 static inline s64 beat_write_htab_entry(
u64 htab_id,
u64 slot,
96 hpte_v, hpte_r, mask_v, mask_r);
109 hpte_v, hpte_r, mask_v, value_v);
114 static inline s64 beat_invalidate_htab_entry3(
u64 htab_id,
u64 group,
118 htab_id, group, va, pss);
121 static inline s64 beat_update_htab_permission3(
u64 htab_id,
u64 group,
125 htab_id, group, va, pss, ptel_mask, ptel_value);
128 static inline s64 beat_clear_htab3(
u64 htab_id)
133 static inline void beat_shutdown_logical_partition(
u64 code)
138 static inline s64 beat_rtc_write(
u64 time_from_epoch)
143 static inline s64 beat_rtc_read(
u64 *time_from_epoch)
149 *time_from_epoch = dummy[0];
153 #define BEAT_NVRW_CNT (sizeof(u64) * 6)
161 memcpy(b, buffer,
sizeof(b));
163 b[0], b[1], b[2], b[3], b[4], b[5]);
174 memcpy(buffer, b, length);
183 static inline s64 beat_get_characters_from_console(
u64 termno,
u64 *len,
191 memcpy(buffer, dummy + 1, *len);
195 static inline s64 beat_put_characters_to_console(
u64 termno,
u64 len,
205 static inline s64 beat_get_spe_privileged_state_1_registers(
222 static inline s64 beat_clear_interrupt_status_of_spe(
u64 id,
u64 class,
229 static inline s64 beat_set_spe_privileged_state_1_registers(
233 id, offsetof, value);
236 static inline s64 beat_get_interrupt_status_of_spe(
u64 id,
u64 class,
u64 *
val)
253 static inline s64 beat_construct_event_receive_port(
u64 *
port)
263 static inline s64 beat_destruct_event_receive_port(
u64 port)
276 path[0], path[1], path[2], path[3], data[0], data[1]);
280 static inline s64 beat_get_repository_node_value(
u64 lpid,
u64 path[4],
286 lpid, path[0], path[1], path[2], path[3]);