serial.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. #ifndef _PPC_BOOT_SERIALP_H
  12. #define _PPC_BOOT_SERIALP_H
  13. /*
  14. * This is our internal structure for each serial port's state.
  15. *
  16. * Many fields are paralleled by the structure used by the serial_struct
  17. * structure.
  18. *
  19. * Given that this is how SERIAL_PORT_DFNS are done, and that we need
  20. * to use a few of their fields, we need to have our own copy of it.
  21. */
  22. struct serial_state {
  23. int magic;
  24. int baud_base;
  25. unsigned long port;
  26. int irq;
  27. int flags;
  28. int hub6;
  29. int type;
  30. int line;
  31. int revision; /* Chip revision (950) */
  32. int xmit_fifo_size;
  33. int custom_divisor;
  34. int count;
  35. u8 *iomem_base;
  36. u16 iomem_reg_shift;
  37. unsigned short close_delay;
  38. unsigned short closing_wait; /* time to wait before closing */
  39. unsigned long icount;
  40. int io_type;
  41. void *info;
  42. void *dev;
  43. };
  44. #endif /* _PPC_BOOT_SERIAL_H */