kernel-fxtec-pro1x/arch/ppc/boot/include/serial.h
Linus Torvalds 1da177e4c3 Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.

Let it rip!
2005-04-16 15:20:36 -07:00

46 lines
1.1 KiB
C

/*
* A really private header file for the (dumb) serial driver in arch/ppc/boot
*
* Shamelessly taken from include/linux/serialP.h:
*
* Copyright (C) 1997 by Theodore Ts'o.
*
* Redistribution of this file is permitted under the terms of the GNU
* Public License (GPL)
*/
#ifndef _PPC_BOOT_SERIALP_H
#define _PPC_BOOT_SERIALP_H
/*
* This is our internal structure for each serial port's state.
*
* Many fields are paralleled by the structure used by the serial_struct
* structure.
*
* Given that this is how SERIAL_PORT_DFNS are done, and that we need
* to use a few of their fields, we need to have our own copy of it.
*/
struct serial_state {
int magic;
int baud_base;
unsigned long port;
int irq;
int flags;
int hub6;
int type;
int line;
int revision; /* Chip revision (950) */
int xmit_fifo_size;
int custom_divisor;
int count;
u8 *iomem_base;
u16 iomem_reg_shift;
unsigned short close_delay;
unsigned short closing_wait; /* time to wait before closing */
unsigned long icount;
int io_type;
void *info;
void *dev;
};
#endif /* _PPC_BOOT_SERIAL_H */