Annotation of qemu/roms/SLOF/clients/net-snk/include/of.h, revision 1.1

1.1     ! root        1: /******************************************************************************
        !             2:  * Copyright (c) 2004, 2008 IBM Corporation
        !             3:  * All rights reserved.
        !             4:  * This program and the accompanying materials
        !             5:  * are made available under the terms of the BSD License
        !             6:  * which accompanies this distribution, and is available at
        !             7:  * http://www.opensource.org/licenses/bsd-license.php
        !             8:  *
        !             9:  * Contributors:
        !            10:  *     IBM Corporation - initial implementation
        !            11:  *****************************************************************************/
        !            12: 
        !            13: 
        !            14: #ifndef OF_H
        !            15: #define OF_H
        !            16: #define p32 int
        !            17: #define p32cast (int) (unsigned long) (void*)
        !            18: 
        !            19: #define phandle_t p32
        !            20: #define ihandle_t p32
        !            21: 
        !            22: typedef struct 
        !            23: {
        !            24:     unsigned int serv;
        !            25:     int nargs;
        !            26:     int nrets;
        !            27:     unsigned int args[16];
        !            28: } of_arg_t;
        !            29: 
        !            30: 
        !            31: phandle_t of_finddevice (const char *);
        !            32: phandle_t of_peer (phandle_t);
        !            33: phandle_t of_child (phandle_t);
        !            34: phandle_t of_parent (phandle_t);
        !            35: int of_getprop (phandle_t, const char *, void *, int);
        !            36: void * of_call_method_3 (const char *, ihandle_t, int);
        !            37: 
        !            38: 
        !            39: ihandle_t of_open (const char *);
        !            40: void of_close(ihandle_t);
        !            41: int of_read (ihandle_t , void*, int);
        !            42: int of_write (ihandle_t, void*, int);
        !            43: int of_seek (ihandle_t, int, int);
        !            44: 
        !            45: void * of_claim(void *, unsigned int , unsigned int );
        !            46: void of_release(void *, unsigned int );
        !            47: 
        !            48: int of_yield(void);
        !            49: void * of_set_callback(void *);
        !            50: 
        !            51: unsigned int romfs_lookup(const char *, void **);
        !            52: int vpd_read(unsigned int , unsigned int , char *);
        !            53: int vpd_write(unsigned int , unsigned int , char *);
        !            54: int write_mm_log(char *, unsigned int , unsigned short );
        !            55: 
        !            56: #endif

unix.superglobalmegacorp.com

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