/*
- * Copyright (c) 2000-2005 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2006 Apple Computer, Inc. All rights reserved.
*
* @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
* grow when we're dealing with a 64-bit process.
* WARNING - keep in sync with ioccmd_t
*/
-#if __DARWIN_ALIGN_NATURAL
-#pragma options align=natural
-#endif
-
typedef struct {
int ic_cmd;
int ic_timout;
int ic_len;
- user_addr_t ic_dp;
+ user_addr_t ic_dp __attribute__((aligned(8)));
} user_ioccmd_t;
-#if __DARWIN_ALIGN_NATURAL
-#pragma options align=reset
-#endif
-
#endif // KERNEL_PRIVATE
#endif // KERNEL
typedef int atevent_t;
typedef int atlock_t;
-typedef int *atomic_p;
-#define ATLOCKINIT(a) (a = (atlock_t) EVENT_NULL)
-#define ATDISABLE(l, a)
-#define ATENABLE(l, a)
#define ATEVENTINIT(a) (a = (atevent_t) EVENT_NULL)
#define DDP_OUTPUT(m) ddp_putmsg(0,m)
#define StaticProc static
void gbuf_linkb(gbuf_t *m1, gbuf_t *m2);
void gbuf_linkpkt(gbuf_t *m1, gbuf_t *m2);
int gbuf_msgsize(gbuf_t *m);
+struct mbuf *copy_pkt(struct mbuf *, int);
+int append_copy(struct mbuf *, struct mbuf *, int);
#define gbuf_cont(m) m->m_next
#define gbuf_next(m) m->m_nextpkt
#undef timeout
#undef untimeout
+struct atpBDS;
+int _ATPgetrsp(int, struct atpBDS *, int *, void *);
+int _ATPgetreq(int , unsigned char *, int , int *, void *);
+int _ATPsndrsp(int , unsigned char *, int , int, int *, void *);
+int _ATPsndreq(int , unsigned char *, int , int, int *, void *);
+
#endif /* KERNEL_PRIVATE */
#endif /* KERNEL */
#endif /* __APPLE_API_OBSOLETE */