| 229 | #endif /* NLM_SEC_DEBUG */ |
| 230 | |
| 231 | static int |
| 232 | xlp_sec_init(struct xlp_sec_softc *sc) |
| 233 | { |
| 234 | |
| 235 | /* Register interrupt handler for the SEC CMS messages */ |
| 236 | if (register_msgring_handler(sc->sec_vc_start, |
| 237 | sc->sec_vc_end, nlm_xlpsec_msgring_handler, sc) != 0) { |
| 238 | printf("Couldn't register sec msgring handler\n"); |
| 239 | return (-1); |
| 240 | } |
| 241 | |
| 242 | /* Do the CMS credit initialization */ |
| 243 | /* Currently it is configured by default to 50 when kernel comes up */ |
| 244 | |
| 245 | return (0); |
| 246 | } |
| 247 | |
| 248 | /* This function is called from an interrupt handler */ |
| 249 | void |
no test coverage detected