#define KDP_ERROR 5 /* error code */
#define KDP_SEEK 6 /* Seek to specified offset */
#define KDP_EOF 7 /* signal end of file */
+
+#if defined(__LP64__)
+#define KDP_FEATURE_MASK_STRING "features"
+enum {KDP_FEATURE_LARGE_CRASHDUMPS = 1};
+extern uint32_t kdp_crashdump_feature_mask;
+#endif
struct corehdr {
short th_opcode; /* packet type */
union {
#define CORE_REMOTE_PORT 1069 /* hardwired, we can't really query the services file */
void kdp_panic_dump (void);
-
void abort_panic_transfer (void);
+void kdp_set_dump_info(const uint32_t flags, const char *file, const char *destip,
+ const char *routerip, const uint32_t port);
+void kdp_get_dump_info(uint32_t *flags, char *file, char *destip, char *routerip,
+ uint32_t *port);
+
struct corehdr *create_panic_header(unsigned int request, const char *corename, unsigned length, unsigned block);
int kdp_send_crashdump_pkt(unsigned int request, char *corename,
- unsigned int length, void *panic_data);
+ uint64_t length, void *panic_data);
int kdp_send_crashdump_data(unsigned int request, char *corename,
- unsigned int length, caddr_t txstart);
+ uint64_t length, caddr_t txstart);