Annotation of qemu/roms/SLOF/lib/libhvcall/libhvcall.h, revision 1.1.1.1

1.1       root        1: #ifndef __LIBHVCALL_H__
                      2: #define __LIBHVCALL_H__
                      3: 
                      4: #define H_SUCCESS              0
                      5: 
                      6: #define H_GET_TERM_CHAR                0x54
                      7: #define H_PUT_TERM_CHAR                0x58
                      8: #define H_REG_CRQ              0xFC
                      9: #define H_FREE_CRQ             0x100
                     10: #define H_SEND_CRQ             0x108
                     11: #define H_REGISTER_LOGICAL_LAN 0x114
                     12: #define H_FREE_LOGICAL_LAN     0x118
                     13: #define H_ADD_LOGICAL_LAN_BUFFER 0x11C
                     14: #define H_SEND_LOGICAL_LAN     0x120
                     15: 
                     16: #ifndef __ASSEMBLY__
                     17: 
                     18: extern long hv_generic(unsigned long opcode, ...);
                     19: 
                     20: extern void hv_putchar(char c);
                     21: extern char hv_getchar(void);
                     22: extern char hv_haschar(void);
                     23: 
                     24: extern int hv_send_crq(unsigned int unit, uint64_t *msgaddr);
                     25: 
                     26: static inline long hv_reg_crq(unsigned int unit, unsigned long qaddr,
                     27:                              unsigned long qsize)
                     28: {
                     29:        return hv_generic(H_REG_CRQ, unit, qaddr, qsize);
                     30: }
                     31: 
                     32: static inline void hv_free_crq(unsigned int unit)
                     33: {
                     34:        hv_generic(H_FREE_CRQ, unit);
                     35: }
                     36: 
                     37: extern long  hv_send_logical_lan(unsigned long unit_address,
                     38:                                 unsigned long desc1, unsigned long desc2,
                     39:                                 unsigned long desc3, unsigned long desc4,
                     40:                                 unsigned long desc5, unsigned long desc6);
                     41: 
                     42: static inline long h_register_logical_lan(unsigned long unit_address,
                     43:                                          unsigned long buf_list,
                     44:                                          unsigned long rec_q,
                     45:                                          unsigned long filter_list,
                     46:                                          unsigned long mac_address)
                     47: {
                     48:        return hv_generic(H_REGISTER_LOGICAL_LAN, unit_address,
                     49:                          buf_list, rec_q, filter_list, mac_address);
                     50: }
                     51: 
                     52: static inline long h_free_logical_lan(unsigned long unit_address)
                     53: {
                     54:        return hv_generic(H_FREE_LOGICAL_LAN, unit_address);
                     55: }
                     56: 
                     57: static inline long h_add_logical_lan_buffer(unsigned long unit_address,
                     58:                                            unsigned long buffer)
                     59: {
                     60:        return hv_generic(H_ADD_LOGICAL_LAN_BUFFER, unit_address, buffer);
                     61: }
                     62: 
                     63: #endif /* __ASSEMBLY__ */
                     64: 
                     65: #endif /* __LIBHVCALL_H__ */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.