tcreg.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /* $OpenBSD: tcreg.h,v 1.3 2002/05/02 22:56:06 miod Exp $ */
  2. /* $NetBSD: tcreg.h,v 1.1 1995/12/20 00:48:36 cgd Exp $ */
  3. /*
  4. * Copyright (c) 1994, 1995 Carnegie-Mellon University.
  5. * All rights reserved.
  6. *
  7. * Author: Chris G. Demetriou
  8. *
  9. * Permission to use, copy, modify and distribute this software and
  10. * its documentation is hereby granted, provided that both the copyright
  11. * notice and this permission notice appear in all copies of the
  12. * software, derivative works or modified versions, and any portions
  13. * thereof, and that both notices appear in supporting documentation.
  14. *
  15. * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  16. * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
  17. * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  18. *
  19. * Carnegie Mellon requests users of this software to return to
  20. *
  21. * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
  22. * School of Computer Science
  23. * Carnegie Mellon University
  24. * Pittsburgh PA 15213-3890
  25. *
  26. * any improvements or extensions that they make and grant Carnegie the
  27. * rights to redistribute these changes.
  28. */
  29. #ifndef __DEV_TC_TCREG_H__
  30. #define __DEV_TC_TCREG_H__
  31. /*
  32. * TurboChannel bus and register definitions.
  33. */
  34. #define TC_ROM_LLEN 8
  35. #define TC_ROM_SLEN 4
  36. #define TC_ROM_TEST_SIZE 16
  37. #define TC_SLOT_ROM 0x000003e0
  38. #define TC_SLOT_PROTOROM 0x003c03e0
  39. typedef struct tc_padchar {
  40. u_int8_t v;
  41. u_int8_t pad[3];
  42. } tc_padchar_t;
  43. struct tc_rommap {
  44. tc_padchar_t tcr_width;
  45. tc_padchar_t tcr_stride;
  46. tc_padchar_t tcr_rsize;
  47. tc_padchar_t tcr_ssize;
  48. u_int8_t tcr_test[TC_ROM_TEST_SIZE];
  49. tc_padchar_t tcr_rev[TC_ROM_LLEN];
  50. tc_padchar_t tcr_vendname[TC_ROM_LLEN];
  51. tc_padchar_t tcr_modname[TC_ROM_LLEN];
  52. tc_padchar_t tcr_firmtype[TC_ROM_SLEN];
  53. };
  54. #endif /* __DEV_TC_TCREG_H__ */