Lines Matching defs:me
35 m32r_uart_io_write_buffer (struct hw *me, const void *source,
38 SIM_DESC sd = hw_system (me);
63 m32r_uart_io_read_buffer (struct hw *me, void *dest,
66 SIM_DESC sd = hw_system (me);
102 attach_m32r_uart_regs (struct hw *me, struct m32r_uart *uart)
109 if (hw_find_property (me, "reg") == NULL)
110 hw_abort (me, "Missing \"reg\" property");
112 if (!hw_find_reg_array_property (me, "reg", 0, ®))
113 hw_abort (me, "\"reg\" property must contain three addr/size entries");
115 hw_unit_address_to_attach_address (hw_parent (me),
117 &attach_space, &attach_address, me);
118 hw_unit_size_to_attach_size (hw_parent (me), ®.size, &attach_size, me);
120 hw_attach_address (hw_parent (me),
121 0, attach_space, attach_address, attach_size, me);
125 m32r_uart_finish (struct hw *me)
129 uart = HW_ZALLOC (me, struct m32r_uart);
131 set_hw_data (me, uart);
132 set_hw_io_read_buffer (me, m32r_uart_io_read_buffer);
133 set_hw_io_write_buffer (me, m32r_uart_io_write_buffer);
135 attach_m32r_uart_regs (me, uart);