| Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* | 
 | 2 |  * A really private header file for the (dumb) serial driver in arch/ppc/boot | 
 | 3 |  * | 
 | 4 |  * Shamelessly taken from include/linux/serialP.h: | 
 | 5 |  * | 
 | 6 |  * Copyright (C) 1997 by Theodore Ts'o. | 
 | 7 |  * | 
 | 8 |  * Redistribution of this file is permitted under the terms of the GNU | 
 | 9 |  * Public License (GPL) | 
 | 10 |  */ | 
 | 11 |  | 
 | 12 | #ifndef _PPC_BOOT_SERIALP_H | 
 | 13 | #define _PPC_BOOT_SERIALP_H | 
 | 14 |  | 
 | 15 | /* | 
 | 16 |  * This is our internal structure for each serial port's state. | 
 | 17 |  * | 
 | 18 |  * Many fields are paralleled by the structure used by the serial_struct | 
 | 19 |  * structure. | 
 | 20 |  * | 
 | 21 |  * Given that this is how SERIAL_PORT_DFNS are done, and that we need | 
 | 22 |  * to use a few of their fields, we need to have our own copy of it. | 
 | 23 |  */ | 
 | 24 | struct serial_state { | 
 | 25 | 	int	magic; | 
 | 26 | 	int	baud_base; | 
 | 27 | 	unsigned long	port; | 
 | 28 | 	int	irq; | 
 | 29 | 	int	flags; | 
 | 30 | 	int	hub6; | 
 | 31 | 	int	type; | 
 | 32 | 	int	line; | 
 | 33 | 	int	revision;	/* Chip revision (950) */ | 
 | 34 | 	int	xmit_fifo_size; | 
 | 35 | 	int	custom_divisor; | 
 | 36 | 	int	count; | 
 | 37 | 	u8	*iomem_base; | 
 | 38 | 	u16	iomem_reg_shift; | 
 | 39 | 	unsigned short	close_delay; | 
 | 40 | 	unsigned short	closing_wait; /* time to wait before closing */ | 
 | 41 | 	unsigned long	icount; | 
 | 42 | 	int	io_type; | 
 | 43 | 	void    *info; | 
 | 44 | 	void    *dev; | 
 | 45 | }; | 
 | 46 | #endif /* _PPC_BOOT_SERIAL_H */ |