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


Ignore:
Timestamp:
2005-09-12T20:25:21Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1c9b02df
Parents:
72dde3a
Message:

Added more code to arc.
Fixed bad name in byteorder.h

File:
1 edited

Legend:

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

    r72dde3a rc7a7656  
    2727 */
    2828
    29 #ifndef __mips32_ARC_H_
    30 #define __mips32_ARC_H_
     29#ifndef __mips_ARC_H_
     30#define __mips_ARC_H_
    3131
    3232#include <arch/types.h>
     
    3535#define ARC_MAGIC 0x53435241
    3636
     37typedef enum {
     38        SystemClass = 0,
     39        ProcessorClass,
     40        CacheClass,
     41        AdapterClass,
     42        ControllerClass,
     43        PeripheralClass,
     44        MemoryClass
     45} arc_component_class;
     46
     47typedef enum {
     48        ARC_type = 0,
     49        CPU_type,
     50        FPU_type,
     51        PrimaryICache,
     52        PrimaryDCache,
     53        SecondaryICache,
     54        SecondaryDCache,
     55        SecondaryCache,
     56        Memory, /* Not in NT PROM */
     57        EISAAdapter,
     58        TCAdapter,
     59        SCSIAdapter,
     60        DTIAdapter,
     61        MultiFunctionAdapter,
     62        DiskController,
     63        TapeController,
     64        CDROMController,
     65        WORMController,
     66        SerialController,
     67        NetworkController,
     68        DisplayController,
     69        ParallelController,
     70        PointerController,
     71        KeyboardController,
     72        AudioController,
     73        OtherController,
     74        DiskPeripheral,
     75        FloppyDiskPeripheral,
     76        TapePeripheral,
     77        ModemPeripheral,
     78        MonitorPeripheral,
     79        PrinterPeripheral,
     80        PointerPeripheral,
     81        KeyboardPeripheral,
     82        TerminalPeripheral,
     83        LinePeripheral,
     84        NetworkPeripheral,
     85        OtherPeripheral,
     86        XTalkAdapter,
     87        PCIAdapter,
     88        GIOAdapter,
     89        TPUAdapter,
     90        Anonymous
     91}arc_component_type;
     92
     93typedef enum {
     94        Failed = 1,
     95        ReadOnly = 2,
     96        Removable = 4,
     97        ConsoleIn = 8,
     98        ConsoleOut = 16,
     99        Input = 32,
     100        Output = 64
     101}arc_component_flags;
     102
    37103typedef struct  {
    38 } arc_component;
     104        arc_component_class class;
     105        arc_component_type type;
     106        arc_component_flags flags;
     107        __u16 revision;
     108        __u16 version;
     109        __u32 key;
     110        __u32 affinitymask;
     111        __u32 configdatasize;
     112        __u32 identifier_len;
     113        char *identifier;
     114} __attribute__ ((packed)) arc_component;
    39115
    40116typedef struct {
     
    46122        __u16 seconds;
    47123        __u16 mseconds;
    48 } arc_timeinfo ;
     124} __attribute__ ((packed)) arc_timeinfo;
    49125
    50126/* This is the SGI block structure, WinNT has it different */
     
    136212extern int arc_enabled(void);
    137213extern void arc_putchar(char ch);
     214extern void arc_print_devices(void);
    138215
    139216#endif
Note: See TracChangeset for help on using the changeset viewer.