[BACK]Return to cpu.c CVS log [TXT][DIR] Up to [local] / funnyos / dev

Annotation of funnyos/dev/cpu.c, Revision 1.5

1.1       init        1: /*
1.5     ! nbrk        2:  * $Id: cpu.c,v 1.4 2007/10/29 21:10:02 init Exp $
1.1       init        3:  */
                      4: #include <sys/types.h>
                      5: #include <sys/device.h>
                      6: #include <libkern/printf.h>
                      7:
1.3       init        8: #include <dev/cpuvar.h>
1.1       init        9:
                     10:
                     11: int    cpu_attach(struct device *, uint32_t, uint8_t);
                     12:
                     13:
                     14: struct driver cpu_dr = {
                     15:        sizeof(struct cpu_dd),
                     16:        cpu_attach,
1.4       init       17:        NULL,
1.1       init       18:        NULL
                     19: };
                     20:
                     21:
                     22: int
                     23: cpu_attach(struct device *self, uint32_t loc, uint8_t flags)
                     24: {
1.5     ! nbrk       25:        printf("ARM CPU\n");
1.1       init       26:
1.2       init       27:        return(0);
1.1       init       28: }
                     29:
                     30:

CVSweb