/*
- * $Id: at.h,v 1.3.10.1 2003-12-12 19:29:55 didg Exp $
+ * $Id: at.h,v 1.3.10.1.2.1 2008-12-18 18:22:40 didg Exp $
*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
*
* These should really be in some global header file, but we can't
* count on them being there, and it's annoying to patch system files.
*/
+#ifndef ETHERTYPE_AT
#define ETHERTYPE_AT 0x809B /* AppleTalk protocol */
+#endif
+#ifndef ETHERTYPE_AARP
#define ETHERTYPE_AARP 0x80F3 /* AppleTalk ARP */
+#endif
#define DDP_MAXSZ 587
return( DDI_FAILURE );
}
+/* Solaris 10 removed DDI_IDENTIFIED and replaced "identify" with "nulldev" */
+#ifdef DDI_IDENTIFIED
static int
tpi_identify( dev_info_t *dip )
{
return( DDI_NOT_IDENTIFIED );
}
}
+#endif /* DDI_IDENTIFIED */
static int
tpi_attach( dev_info_t *dip, ddi_attach_cmd_t cmd )
}
cp = (struct copyresp *)m->b_rptr;
if ( cp->cp_rval != 0 ) {
- cmn_err( CE_CONT, "tpi_wput IOCDATA failed %d\n", cp->cp_rval );
+ cmn_err( CE_CONT, "tpi_wput IOCDATA failed %s\n", cp->cp_rval );
freemsg( m );
break;
}
DEVO_REV,
0,
tpi_getinfo,
+#ifdef DDI_IDENTIFIED
tpi_identify,
+#else
+ nulldev,
+#endif
nulldev,
tpi_attach,
tpi_detach,