entry.c (9268022b74279434ed6300244e3f977e56a8ceb5) entry.c (43cd61606b6bfae52bb09856277751103bfa28fd)
1/*
2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

1985
1986 pAdapter->hpt_dev = dev;
1987
1988 rid = init_adapter(pAdapter);
1989 if (rid)
1990 return rid;
1991
1992 rid = 0;
1/*
2 * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

1985
1986 pAdapter->hpt_dev = dev;
1987
1988 rid = init_adapter(pAdapter);
1989 if (rid)
1990 return rid;
1991
1992 rid = 0;
1993 if ((pAdapter->hpt_irq = bus_alloc_resource(pAdapter->hpt_dev, SYS_RES_IRQ, &rid, 0, ~0ul, 1, RF_SHAREABLE | RF_ACTIVE)) == NULL)
1993 if ((pAdapter->hpt_irq = bus_alloc_resource_any(pAdapter->hpt_dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE)) == NULL)
1994 {
1995 hpt_printk(("can't allocate interrupt\n"));
1996 return(ENXIO);
1997 }
1998
1999 if (bus_setup_intr(pAdapter->hpt_dev, pAdapter->hpt_irq,
2000 INTR_TYPE_CAM | INTR_MPSAFE,
2001 NULL, hpt_intr, pAdapter, &pAdapter->hpt_intr))

--- 991 unchanged lines hidden ---
1994 {
1995 hpt_printk(("can't allocate interrupt\n"));
1996 return(ENXIO);
1997 }
1998
1999 if (bus_setup_intr(pAdapter->hpt_dev, pAdapter->hpt_irq,
2000 INTR_TYPE_CAM | INTR_MPSAFE,
2001 NULL, hpt_intr, pAdapter, &pAdapter->hpt_intr))

--- 991 unchanged lines hidden ---