|
|
| version 1.3, 2003/08/07 21:16:51 | version 1.4, 2004/02/13 01:04:14 |
|---|---|
| Line 1837 ahd_handle_nonpkt_busfree(struct ahd_sof | Line 1837 ahd_handle_nonpkt_busfree(struct ahd_sof |
| printerror = 0; | printerror = 0; |
| } else if (ahd_sent_msg(ahd, AHDMSG_1B, | } else if (ahd_sent_msg(ahd, AHDMSG_1B, |
| MSG_BUS_DEV_RESET, TRUE)) { | MSG_BUS_DEV_RESET, TRUE)) { |
| #ifdef __FreeBSD__ | #if defined(__DragonFly__) || defined(__FreeBSD__) |
| /* | /* |
| * Don't mark the user's request for this BDR | * Don't mark the user's request for this BDR |
| * as completing with CAM_BDR_SENT. CAM3 | * as completing with CAM_BDR_SENT. CAM3 |
| Line 4779 ahd_alloc(void *platform_arg, char *name | Line 4779 ahd_alloc(void *platform_arg, char *name |
| { | { |
| struct ahd_softc *ahd; | struct ahd_softc *ahd; |
| #ifndef __FreeBSD__ | #if !defined(__DragonFly__) && !defined(__FreeBSD__) |
| ahd = malloc(sizeof(*ahd), M_DEVBUF, M_NOWAIT); | ahd = malloc(sizeof(*ahd), M_DEVBUF, M_NOWAIT); |
| if (!ahd) { | if (!ahd) { |
| printf("aic7xxx: cannot malloc softc!\n"); | printf("aic7xxx: cannot malloc softc!\n"); |
| Line 4793 ahd_alloc(void *platform_arg, char *name | Line 4793 ahd_alloc(void *platform_arg, char *name |
| ahd->seep_config = malloc(sizeof(*ahd->seep_config), | ahd->seep_config = malloc(sizeof(*ahd->seep_config), |
| M_DEVBUF, M_NOWAIT); | M_DEVBUF, M_NOWAIT); |
| if (ahd->seep_config == NULL) { | if (ahd->seep_config == NULL) { |
| #ifndef __FreeBSD__ | #if !defined(__DragonFly__) && !defined(__FreeBSD__) |
| free(ahd, M_DEVBUF); | free(ahd, M_DEVBUF); |
| #endif | #endif |
| free(name, M_DEVBUF); | free(name, M_DEVBUF); |
| Line 4995 ahd_free(struct ahd_softc *ahd) | Line 4995 ahd_free(struct ahd_softc *ahd) |
| free(ahd->seep_config, M_DEVBUF); | free(ahd->seep_config, M_DEVBUF); |
| if (ahd->saved_stack != NULL) | if (ahd->saved_stack != NULL) |
| free(ahd->saved_stack, M_DEVBUF); | free(ahd->saved_stack, M_DEVBUF); |
| #ifndef __FreeBSD__ | #if !defined(__DragonFly__) && !defined(__FreeBSD__) |
| free(ahd, M_DEVBUF); | free(ahd, M_DEVBUF); |
| #endif | #endif |
| return; | return; |