/branches/sparc/uspace/srv/kbd/arch/sparc64/src/sgcn.c |
---|
97,8 → 97,7 |
*/ |
void sgcn_init(void) |
{ |
sram_virt_addr = (uintptr_t) as_get_mappable_page( |
sysinfo_value("sram.area.size")); |
sram_virt_addr = (uintptr_t) as_get_mappable_page(sysinfo_value("sram.area.size")); |
int result = physmem_map( |
(void *) sysinfo_value("sram.address.physical"), |
(void *) sram_virt_addr, |
144,4 → 143,4 |
} |
/** @} |
*/ |
*/ |
/branches/sparc/uspace/srv/fb/serial_console.c |
---|
30,7 → 30,7 |
/** |
* @defgroup serial Serial console |
* @brief Serial console services (putc, puts, clear screen, cursor goto,...) |
* @brief Serial console services (putc, puts, clear screen, cursor goto,...).* |
* @{ |
*/ |
107,4 → 107,4 |
/** |
* @} |
*/ |
*/ |
/branches/sparc/uspace/srv/fb/serial_console.h |
---|
28,7 → 28,7 |
/** |
* @defgroup serial Serial console |
* @brief Serial console services (putc, puts, clear screen, cursor goto,...) |
* @brief Serial console services (putc, puts, clear screen, cursor goto,...).* |
* @{ |
*/ |
49,4 → 49,4 |
void serial_cursor_enable(void); |
void serial_console_init(putc_function_t putc_fn, uint32_t w, uint32_t h); |
#endif |
#endif |
/branches/sparc/uspace/srv/fb/sgcn.c |
---|
98,10 → 98,6 |
/** Returns a pointer to the console buffer header. */ |
#define SGCN_BUFFER_HEADER (SGCN_BUFFER(sgcn_buffer_header_t, 0)) |
/** |
* Pushes the character to the SGCN serial. |
* @param c character to be pushed |
*/ |
static void sgcn_putc(char c) |
{ |
uint32_t begin = SGCN_BUFFER_HEADER->out_begin; |
121,9 → 117,6 |
*out_wrptr_ptr = new_wrptr; |
} |
/** |
* Main function of the thread serving client connections. |
*/ |
static void sgcn_client_connection(ipc_callid_t iid, ipc_call_t *icall) |
{ |
int retval; |
218,13 → 211,9 |
} |
} |
/** |
* Initializes the SGCN serial driver. |
*/ |
int sgcn_init(void) |
{ |
sram_virt_addr = (uintptr_t) as_get_mappable_page( |
sysinfo_value("sram.area.size")); |
sram_virt_addr = (uintptr_t) as_get_mappable_page(sysinfo_value("sram.area.size")); |
int result = physmem_map( |
(void *) sysinfo_value("sram.address.physical"), |
(void *) sram_virt_addr, |
247,4 → 236,4 |
/** |
* @} |
*/ |