Deleted Added
sdiff udiff text old ( 102199 ) new ( 102822 )
full compact
1/* $FreeBSD: head/sys/dev/mpt/mpt.h 102199 2002-08-20 23:04:08Z mjacob $ */
2/*
3 * Generic defines for LSI '909 FC adapters.
4 * FreeBSD Version.
5 *
6 * Copyright (c) 2000, 2001 by Greg Ansley
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions

--- 135 unchanged lines hidden (view full) ---

145#define MPT_CONTEXT_REPLY (0x80000000)
146#define MPT_CONTEXT_MASK (~0xE0000000)
147
148#ifdef _KERNEL
149int mpt_soft_reset(mpt_softc_t *mpt);
150void mpt_hard_reset(mpt_softc_t *mpt);
151int mpt_recv_handshake_reply(mpt_softc_t *mpt, size_t reply_len, void *reply);
152
153
154void mpt_send_cmd(mpt_softc_t *mpt, request_t *req);
155void mpt_free_reply(mpt_softc_t *mpt, u_int32_t ptr);
156void mpt_enable_ints(mpt_softc_t *mpt);
157void mpt_disable_ints(mpt_softc_t *mpt);
158u_int32_t mpt_pop_reply_queue(mpt_softc_t *mpt);
159int mpt_init(mpt_softc_t *mpt, u_int32_t who);
160int mpt_reset(mpt_softc_t *mpt);
161int mpt_send_handshake_cmd(mpt_softc_t *mpt, size_t len, void *cmd);
162request_t * mpt_get_request(mpt_softc_t *mpt);
163void mpt_free_request(mpt_softc_t *mpt, request_t *req);
164int mpt_intr(void *dummy);
165void mpt_check_doorbell(mpt_softc_t * mpt);
166
167/* mpt_debug.c functions */
168void mpt_print_reply(void *vmsg);
169void mpt_print_db(u_int32_t mb);
170void mpt_print_config_reply(void *vmsg);
171char *mpt_ioc_diag(u_int32_t diag);
172char *mpt_req_state(enum mpt_req_state state);
173void mpt_print_scsi_io_request(MSG_SCSI_IO_REQUEST *msg);
174void mpt_print_config_request(void *vmsg);
175void mpt_print_request(void *vmsg);
176#endif
177#endif /* _MPT_H_ */