OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uClinux-2.0.x/] [fs/] [proc/] [serial.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
/*
2
 *  linux/fs/proc/serial.c
3
 *
4
 *  Copyright (C) 1999, Greg Ungerer (gerg@moreton.com.au)
5
 *
6
 *  Copied and hacked from array.c, which was:
7
 *
8
 *  Copyright (C) 1991, 1992 Linus Torvalds
9
 */
10
 
11
#include <linux/types.h>
12
#include <linux/errno.h>
13
#include <linux/sched.h>
14
#include <linux/kernel.h>
15
#include <linux/kernel_stat.h>
16
#include <linux/tty.h>
17
#include <linux/user.h>
18
#include <linux/a.out.h>
19
#include <linux/string.h>
20
#include <linux/mman.h>
21
#include <linux/proc_fs.h>
22
#include <linux/ioport.h>
23
#include <linux/config.h>
24
#include <linux/mm.h>
25
#include <linux/pagemap.h>
26
#include <linux/swap.h>
27
 
28
#include <asm/segment.h>
29
#include <asm/pgtable.h>
30
#include <asm/io.h>
31
 
32
int get_serialinfo(char * buffer)
33
{
34
        int len = 0;
35
 
36
#ifdef CONFIG_COLDFIRE_SERIAL
37
        extern int mcfrs_readproc(char *buffer);
38
        len = mcfrs_readproc(buffer);
39
#else
40
        len += sprintf(buffer, "No Serial Info\n");
41
#endif
42
 
43
        return(len);
44
}
45
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.