Changeset daea4bf in mainline for arch/mips32/include/drivers/arc.h


Ignore:
Timestamp:
2006-02-18T15:33:05Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8b80b72
Parents:
052da81
Message:

Some arc bios tweaks. Wanted to print configuration data, but
the ARC seems to return strange values.
Newport graphics card does not seem to be easy to port, give up now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/include/drivers/arc.h

    r052da81 rdaea4bf  
    3737/* Frame size used by ARC */
    3838#define ARC_FRAME 4096
     39
     40typedef enum {
     41        CmResourceTypeNull = 0,
     42        CmResourceTypePort,
     43        CmResourceTypeInterrupt,
     44        CmResourceTypeMemory,
     45        CmResourceTypeDma,
     46        CmResourceTypeDeviceSpecific,
     47        CmResourceTypeVendor,
     48        CmResourceTypeProductName,
     49        CmResourceTypeSerialNumber
     50}cm_resource_type;
     51
     52typedef struct {
     53        __u8 type;
     54        __u8 sharedisposition;
     55        __u16 flags;
     56        union {
     57                struct {
     58                        long long start; /* 64-bit phys address */
     59                        unsigned long length;
     60                }port;
     61                struct {
     62                        unsigned long level;
     63                        unsigned long vector;
     64                        unsigned long reserved1;
     65                }interrupt;
     66                struct {
     67                        long long start; /* 64-bit phys address */
     68                        unsigned long length;
     69                }memory;
     70        }u;
     71}__attribute__ ((packed)) cm_resource_descriptor;
     72
     73typedef struct {
     74        __u16 version;
     75        __u16 revision;
     76        unsigned long count;
     77        cm_resource_descriptor descr[1];
     78}__attribute__ ((packed)) cm_resource_list;
    3979
    4080typedef enum {
     
    212252
    213253extern int arc_init(void);
    214 extern void arc_print_memory_map(void);
    215254extern int arc_enabled(void);
    216 extern void arc_print_devices(void);
    217255void arc_frame_init(void);
    218256void arc_console(void);
Note: See TracChangeset for help on using the changeset viewer.