2 |
#define ARCBIOS_H |
#define ARCBIOS_H |
3 |
|
|
4 |
/* |
/* |
5 |
* Copyright (C) 2004-2005 Anders Gavare. All rights reserved. |
* Copyright (C) 2004-2006 Anders Gavare. All rights reserved. |
6 |
* |
* |
7 |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
8 |
* modification, are permitted provided that the following conditions are met: |
* modification, are permitted provided that the following conditions are met: |
28 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
29 |
* |
* |
30 |
* |
* |
31 |
* $Id: arcbios.h,v 1.4 2005/01/29 14:34:22 debug Exp $ |
* $Id: arcbios.h,v 1.12 2006/02/02 19:30:32 debug Exp $ |
32 |
* |
* |
33 |
* Headerfile for src/arcbios.c. |
* Headerfile for src/arcbios.c. |
34 |
* |
* |
41 |
|
|
42 |
struct cpu; |
struct cpu; |
43 |
|
|
|
#define ARC_CONSOLE_MAX_X 80 |
|
|
#define ARC_CONSOLE_MAX_Y 30 |
|
|
|
|
44 |
/* arcbios.c: */ |
/* arcbios.c: */ |
45 |
void arcbios_add_string_to_component(char *string, uint64_t component); |
void arcbios_add_string_to_component(struct machine *machine, |
46 |
void arcbios_get_dsp_stat(struct cpu *cpu, struct arcbios_dsp_stat *dspstat); |
char *string, uint64_t component); |
47 |
void arcbios_console_init(struct cpu *cpu, |
void arcbios_register_scsicontroller(struct machine *machine, |
48 |
uint64_t vram, uint64_t ctrlregs, int maxx, int maxy); |
uint64_t scsicontroller_component); |
49 |
void arcbios_register_scsicontroller(uint64_t scsicontroller_component); |
uint64_t arcbios_get_scsicontroller(struct machine *machine); |
|
uint64_t arcbios_get_scsicontroller(void); |
|
50 |
void arcbios_add_memory_descriptor(struct cpu *cpu, |
void arcbios_add_memory_descriptor(struct cpu *cpu, |
51 |
uint64_t base, uint64_t len, int arctype); |
uint64_t base, uint64_t len, int arctype); |
52 |
uint64_t arcbios_addchild_manual(struct cpu *cpu, |
uint64_t arcbios_addchild_manual(struct cpu *cpu, |
55 |
char *identifier, uint64_t parent, void *config_data, |
char *identifier, uint64_t parent, void *config_data, |
56 |
size_t config_len); |
size_t config_len); |
57 |
int arcbios_emul(struct cpu *cpu); |
int arcbios_emul(struct cpu *cpu); |
|
void arcbios_set_64bit_mode(int enable); |
|
58 |
void arcbios_set_default_exception_handler(struct cpu *cpu); |
void arcbios_set_default_exception_handler(struct cpu *cpu); |
59 |
void arcbios_init(void); |
|
60 |
|
void arcbios_console_init(struct machine *machine, |
61 |
|
uint64_t vram, uint64_t ctrlregs); |
62 |
|
void arcbios_init(struct machine *machine, int is64bit, uint64_t sgi_ram_offset, |
63 |
|
char *primary_ether_string, uint8_t *primary_ether_macaddr); |
64 |
|
|
65 |
|
|
66 |
/* For internal use in arcbios.c: */ |
/* For internal use in arcbios.c: */ |
79 |
struct arcbios_component64 component; |
struct arcbios_component64 component; |
80 |
}; |
}; |
81 |
|
|
82 |
|
#define ARC_BOOTSTR_BUFLEN 1000 |
83 |
|
|
84 |
|
|
85 |
#endif /* ARCBIOS_H */ |
#endif /* ARCBIOS_H */ |