#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pci_intr_fixup.c,v 1.52 2021/09/16 21:29:41 andvar Exp $");
#include "opt_pcibios.h"
#include "opt_pcifixup.h"
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/queue.h>
#include <sys/device.h>
#include <sys/bus.h>
#include <machine/intr.h>
#include <dev/pci/pcireg.h>
#include <dev/pci/pcivar.h>
#include <dev/pci/pcidevs.h>
#include <i386/pci/pci_intr_fixup.h>
#include <i386/pci/pcibios.h>
struct pciintr_link_map {
int link;
int clink;
int irq;
uint16_t bitmap;
int fixup_stage;
SIMPLEQ_ENTRY(pciintr_link_map) list;
};
pciintr_icu_tag_t pciintr_icu_tag;
pciintr_icu_handle_t pciintr_icu_handle;
#ifdef PCIBIOS_IRQS_HINT
int pcibios_irqs_hint = PCIBIOS_IRQS_HINT;
#endif
struct pciintr_link_map *pciintr_link_lookup(int);
struct pciintr_link_map *pciintr_link_alloc(struct pcibios_intr_routing *,
int);
struct pcibios_intr_routing *pciintr_pir_lookup(int, int);
static int pciintr_bitmap_count_irq(int, int *);
static int pciintr_bitmap_find_lowest_irq(int, int *);
int pciintr_link_init (void);
#ifdef PCIBIOS_INTR_GUESS
int pciintr_guess_irq(void);
#endif
int pciintr_link_fixup(void);
int pciintr_link_route(uint16_t *);
int pciintr_irq_release(uint16_t *);
int pciintr_header_fixup(pci_chipset_tag_t);
void pciintr_do_header_fixup(pci_chipset_tag_t, pcitag_t, void*);
SIMPLEQ_HEAD(, pciintr_link_map) pciintr_link_map_list;
const struct pciintr_icu_table {
pci_vendor_id_t piit_vendor;
pci_product_id_t piit_product;
int (*piit_init)(pci_chipset_tag_t,
bus_space_tag_t, pcitag_t, pciintr_icu_tag_t *,
pciintr_icu_handle_t *);
void (*piit_uninit)(pciintr_icu_handle_t);
} pciintr_icu_table[] = {
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82371MX,
piix_init, piix_uninit },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82371AB_ISA,
piix_init, piix_uninit },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82371FB_ISA,
piix_init, piix_uninit },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82371SB_ISA,
piix_init, piix_uninit },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82440MX_ISA,
piix_init, piix_uninit },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801AA_LPC,
piix_init, piix_uninit },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801AB_LPC,
piix_init, piix_uninit },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801BA_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801BAM_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801CA_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801CAM_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801DB_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801DBM_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801EB_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801FB_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801FBM_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801G_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801GBM_LPC,
ich_init, NULL },
{ PCI_VENDOR_INTEL, PCI_PRODUCT_INTEL_82801GHM_LPC,
ich_init, NULL },
{ PCI_VENDOR_OPTI, PCI_PRODUCT_OPTI_82C558,
opti82c558_init, NULL },
{ PCI_VENDOR_OPTI, PCI_PRODUCT_OPTI_82C700,
opti82c700_init, NULL },
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT82C586_ISA,
via82c586_init, NULL },
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT82C596A,
via82c586_init, NULL },
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT82C686A_ISA,
via82c586_init, NULL },
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT8231,
via8231_init, NULL },
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT8233,
via82c586_init, NULL },
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT8233A,
via8231_init, NULL },
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT8235,
via8231_init, NULL },
{ PCI_VENDOR_VIATECH, PCI_PRODUCT_VIATECH_VT8237,
via8231_init, NULL },
{ PCI_VENDOR_SIS, PCI_PRODUCT_SIS_85C503,
sis85c503_init, NULL },
{ PCI_VENDOR_SIS, PCI_PRODUCT_SIS_962,
sis85c503_init, NULL },
{ PCI_VENDOR_SIS, PCI_PRODUCT_SIS_963,
sis85c503_init, NULL },
{ PCI_VENDOR_AMD, PCI_PRODUCT_AMD_PBC756_PMC,
amd756_init, NULL },
{ PCI_VENDOR_AMD, PCI_PRODUCT_AMD_PBC766_PMC,
amd756_init, NULL },
{ PCI_VENDOR_AMD, PCI_PRODUCT_AMD_PBC768_PMC,
amd756_init, NULL },
{ PCI_VENDOR_ALI, PCI_PRODUCT_ALI_M1533,
ali1543_init, NULL },
{ PCI_VENDOR_ALI, PCI_PRODUCT_ALI_M1543,
ali1543_init, NULL },
{ 0, 0,
NULL, NULL },
};
const struct pciintr_icu_table *pciintr_icu_lookup(pcireg_t);
const struct pciintr_icu_table *
pciintr_icu_lookup(pcireg_t id)
{
const struct pciintr_icu_table *piit;
for (piit = pciintr_icu_table;
piit->piit_init != NULL;
piit++) {
if (PCI_VENDOR(id) == piit->piit_vendor &&
PCI_PRODUCT(id) == piit->piit_product)
return (piit);
}
return (NULL);
}
struct pciintr_link_map *
pciintr_link_lookup(int link)
{
struct pciintr_link_map *l;
SIMPLEQ_FOREACH(l, &pciintr_link_map_list, list) {
if (l->link == link)
return (l);
}
return (NULL);
}
struct pciintr_link_map *
pciintr_link_alloc(struct pcibios_intr_routing *pir, int pin)
{
int link = pir->linkmap[pin].link, clink, irq;
struct pciintr_link_map *l, *lstart;
if (pciintr_icu_tag != NULL) {
if (pciintr_icu_getclink(pciintr_icu_tag, pciintr_icu_handle,
link, &clink) != 0) {
#ifdef DIAGNOSTIC
printf("pciintr_link_alloc: bus %d device %d: "
"link 0x%02x invalid\n",
pir->bus, PIR_DEVFUNC_DEVICE(pir->device), link);
#endif
return (NULL);
}
if (pciintr_icu_get_intr(pciintr_icu_tag, pciintr_icu_handle,
clink, &irq) != 0) {
#ifdef DIAGNOSTIC
printf("pciintr_link_alloc: "
"bus %d device %d link 0x%02x: "
"PIRQ 0x%02x invalid\n",
pir->bus, PIR_DEVFUNC_DEVICE(pir->device), link,
clink);
#endif
return (NULL);
}
}
l = malloc(sizeof(*l), M_DEVBUF, M_WAITOK | M_ZERO);
l->link = link;
l->bitmap = pir->linkmap[pin].bitmap;
if (pciintr_icu_tag != NULL) {
l->clink = clink;
l->irq = irq;
} else {
l->clink = link;
l->irq = X86_PCI_INTERRUPT_LINE_NO_CONNECTION;
}
lstart = SIMPLEQ_FIRST(&pciintr_link_map_list);
if (lstart == NULL || lstart->link < l->link)
SIMPLEQ_INSERT_TAIL(&pciintr_link_map_list, l, list);
else
SIMPLEQ_INSERT_HEAD(&pciintr_link_map_list, l, list);
return (l);
}
struct pcibios_intr_routing *
pciintr_pir_lookup(int bus, int device)
{
struct pcibios_intr_routing *pir;
int entry;
if (pcibios_pir_table == NULL)
return (NULL);
for (entry = 0; entry < pcibios_pir_table_nentries; entry++) {
pir = &pcibios_pir_table[entry];
if (pir->bus == bus &&
PIR_DEVFUNC_DEVICE(pir->device) == device)
return (pir);
}
return (NULL);
}
static int
pciintr_bitmap_count_irq(int irq_bitmap, int *irqp)
{
int i, bit, count = 0, irq = X86_PCI_INTERRUPT_LINE_NO_CONNECTION;
if (irq_bitmap != 0) {
for (i = 0, bit = 1; i < 16; i++, bit <<= 1) {
if (irq_bitmap & bit) {
irq = i;
count++;
}
}
}
*irqp = irq;
return (count);
}
static int
pciintr_bitmap_find_lowest_irq(int irq_bitmap, int *irqp)
{
int i, bit;
if (irq_bitmap != 0) {
for (i = 0, bit = 1; i < 16; i++, bit <<= 1) {
if (irq_bitmap & bit) {
*irqp = i;
return (1);
}
}
}
return (0);
}
int
pciintr_link_init(void)
{
int entry, pin, link;
struct pcibios_intr_routing *pir;
struct pciintr_link_map *l;
if (pcibios_pir_table == NULL) {
printf("pciintr_link_init: no PIR table\n");
return (1);
}
SIMPLEQ_INIT(&pciintr_link_map_list);
for (entry = 0; entry < pcibios_pir_table_nentries; entry++) {
pir = &pcibios_pir_table[entry];
for (pin = 0; pin < PCI_INTERRUPT_PIN_MAX; pin++) {
link = pir->linkmap[pin].link;
if (link == 0) {
continue;
}
l = pciintr_link_lookup(link);
if (l == NULL) {
(void) pciintr_link_alloc(pir, pin);
} else if (pir->linkmap[pin].bitmap != l->bitmap) {
#ifdef DIAGNOSTIC
printf("pciintr_link_init: "
"bus %d device %d link 0x%02x: "
"bad irq bitmap 0x%04x, "
"should be 0x%04x\n",
pir->bus, PIR_DEVFUNC_DEVICE(pir->device),
link, pir->linkmap[pin].bitmap, l->bitmap);
#endif
l->bitmap &= pir->linkmap[pin].bitmap;
}
}
}
return (0);
}
#ifdef PCIBIOS_INTR_GUESS
int
pciintr_guess_irq(void)
{
struct pciintr_link_map *l;
int irq, guessed = 0;
SIMPLEQ_FOREACH(l, &pciintr_link_map_list, list) {
if (l->irq != X86_PCI_INTERRUPT_LINE_NO_CONNECTION)
continue;
if (pciintr_bitmap_count_irq(l->bitmap, &irq) == 1) {
l->irq = irq;
l->fixup_stage = 1;
#ifdef PCIINTR_DEBUG
printf("pciintr_guess_irq (stage 1): "
"guessing PIRQ 0x%02x to be IRQ %d\n",
l->clink, l->irq);
#endif
guessed = 1;
}
}
return (guessed ? 0 : -1);
}
#endif
int
pciintr_link_fixup(void)
{
struct pciintr_link_map *l;
int irq;
uint16_t pciirq = 0;
SIMPLEQ_FOREACH(l, &pciintr_link_map_list, list) {
if (l->irq != X86_PCI_INTERRUPT_LINE_NO_CONNECTION) {
pciirq |= 1 << l->irq;
#ifdef PCIINTR_DEBUG
printf("pciintr_link_fixup: PIRQ 0x%02x already "
"connected to IRQ %d\n", l->clink, l->irq);
#endif
continue;
}
#ifdef PCIINTR_DEBUG
printf("pciintr_link_fixup: PIRQ 0x%02x not connected",
l->clink);
#endif
if (pciintr_bitmap_count_irq(l->bitmap, &irq) == 1) {
l->irq = irq;
l->fixup_stage = 1;
pciirq |= 1 << irq;
#ifdef PCIINTR_DEBUG
printf(", assigning IRQ %d", l->irq);
#endif
}
#ifdef PCIINTR_DEBUG
printf("\n");
#endif
}
SIMPLEQ_FOREACH(l, &pciintr_link_map_list, list) {
if (l->irq != X86_PCI_INTERRUPT_LINE_NO_CONNECTION)
continue;
if (pciintr_bitmap_find_lowest_irq(l->bitmap & pciirq,
&l->irq)) {
l->fixup_stage = 2;
#ifdef PCIINTR_DEBUG
printf("pciintr_link_fixup (stage 2): "
"assigning IRQ %d to PIRQ 0x%02x\n",
l->irq, l->clink);
#endif
}
}
#ifdef PCIBIOS_IRQS_HINT
SIMPLEQ_FOREACH(l, &pciintr_link_map_list, list) {
if (l->irq != X86_PCI_INTERRUPT_LINE_NO_CONNECTION)
continue;
if (pciintr_bitmap_find_lowest_irq(
l->bitmap & pcibios_irqs_hint, &l->irq)) {
l->fixup_stage = 3;
#ifdef PCIINTR_DEBUG
printf("pciintr_link_fixup (stage 3): "
"assigning IRQ %d to PIRQ 0x%02x\n",
l->irq, l->clink);
#endif
}
}
#endif
return (0);
}
int
pciintr_link_route(uint16_t *pciirq)
{
struct pciintr_link_map *l;
int rv = 0;
*pciirq = 0;
SIMPLEQ_FOREACH(l, &pciintr_link_map_list, list) {
if (l->fixup_stage == 0) {
if (l->irq == X86_PCI_INTERRUPT_LINE_NO_CONNECTION) {
#ifdef DIAGNOSTIC
printf("pciintr_link_route: "
"PIRQ 0x%02x: no IRQ, try "
"\"options PCIBIOS_IRQS_HINT=0x%04x\"\n",
l->clink,
(l->bitmap & 0x0e00) ? (l->bitmap & 0x0e00)
: l->bitmap);
#endif
} else {
#ifdef PCIINTR_DEBUG
printf("pciintr_link_route: "
"route of PIRQ 0x%02x -> "
"IRQ %d preserved BIOS setting\n",
l->clink, l->irq);
#endif
*pciirq |= (1 << l->irq);
}
continue;
}
if (pciintr_icu_set_intr(pciintr_icu_tag, pciintr_icu_handle,
l->clink, l->irq) != 0 ||
pciintr_icu_set_trigger(pciintr_icu_tag,
pciintr_icu_handle,
l->irq, IST_LEVEL) != 0) {
printf("pciintr_link_route: route of PIRQ 0x%02x -> "
"IRQ %d failed\n", l->clink, l->irq);
rv = 1;
} else {
*pciirq |= (1 << l->irq);
}
}
return (rv);
}
int
pciintr_irq_release(uint16_t *pciirq)
{
int i, bit;
uint16_t bios_pciirq;
int reg;
#ifdef PCIINTR_DEBUG
printf("pciintr_irq_release: fixup pciirq level/edge map 0x%04x\n",
*pciirq);
#endif
bios_pciirq = 0;
for (i = 0, bit = 1; i < 16; i++, bit <<= 1) {
(void)pciintr_icu_get_trigger(pciintr_icu_tag,
pciintr_icu_handle, i, ®);
if (reg == IST_LEVEL)
bios_pciirq |= bit;
}
#ifdef PCIINTR_DEBUG
printf("pciintr_irq_release: bios pciirq level/edge map 0x%04x\n",
bios_pciirq);
#endif
*pciirq |= bios_pciirq;
for (i = 0, bit = 1; i < 16; i++, bit <<= 1) {
if ((*pciirq & bit) == 0)
reg = IST_EDGE;
else
reg = IST_LEVEL;
(void) pciintr_icu_set_trigger(pciintr_icu_tag,
pciintr_icu_handle, i, reg);
}
#ifdef PCIINTR_DEBUG
printf("pciintr_irq_release: final pciirq level/edge map 0x%04x\n",
*pciirq);
#endif
return (0);
}
int
pciintr_header_fixup(pci_chipset_tag_t pc)
{
PCIBIOS_PRINTV(("------------------------------------------\n"));
PCIBIOS_PRINTV((" device vendor product pin PIRQ IRQ stage\n"));
PCIBIOS_PRINTV(("------------------------------------------\n"));
pci_device_foreach(pc, pcibios_max_bus, pciintr_do_header_fixup, NULL);
PCIBIOS_PRINTV(("------------------------------------------\n"));
return (0);
}
void
pciintr_do_header_fixup(pci_chipset_tag_t pc, pcitag_t tag,
void *context)
{
struct pcibios_intr_routing *pir;
struct pciintr_link_map *l;
int pin, irq, link;
int bus, device, function;
pcireg_t intr, id;
pci_decompose_tag(pc, tag, &bus, &device, &function);
id = pci_conf_read(pc, tag, PCI_ID_REG);
intr = pci_conf_read(pc, tag, PCI_INTERRUPT_REG);
pin = PCI_INTERRUPT_PIN(intr);
irq = PCI_INTERRUPT_LINE(intr);
#if 0
if (pin == 0) {
return;
}
#endif
pir = pciintr_pir_lookup(bus, device);
if (pir == NULL || (link = pir->linkmap[pin - 1].link) == 0) {
return;
}
l = pciintr_link_lookup(link);
if (l == NULL) {
#ifdef PCIINTR_DEBUG
printf("pciintr_header_fixup: no entry for link 0x%02x "
"(%d:%d:%d:%c)\n", link, bus, device, function,
'@' + pin);
#endif
return;
}
#ifdef PCIBIOSVERBOSE
if (pcibiosverbose) {
PCIBIOS_PRINTV(("%03d:%02d:%d 0x%04x 0x%04x %c 0x%02x",
bus, device, function, PCI_VENDOR(id), PCI_PRODUCT(id),
'@' + pin, l->clink));
if (l->irq == X86_PCI_INTERRUPT_LINE_NO_CONNECTION)
PCIBIOS_PRINTV((" -"));
else
PCIBIOS_PRINTV((" %3d", l->irq));
PCIBIOS_PRINTV((" %d ", l->fixup_stage));
}
#else
__USE(id);
#endif
if (irq == 14 || irq == 15) {
PCIBIOS_PRINTV((" WARNING: ignored\n"));
return;
}
if (l->irq == X86_PCI_INTERRUPT_LINE_NO_CONNECTION) {
if (pciintr_icu_tag == NULL &&
irq != 0 && irq != X86_PCI_INTERRUPT_LINE_NO_CONNECTION) {
PCIBIOS_PRINTV(("\n"));
} else {
PCIBIOS_PRINTV((" WARNING: missing IRQ\n"));
}
return;
}
if (l->irq == irq) {
PCIBIOS_PRINTV((" already assigned\n"));
return;
}
if (irq == 0 || irq == X86_PCI_INTERRUPT_LINE_NO_CONNECTION) {
PCIBIOS_PRINTV((" fixed up\n"));
} else {
#ifdef PCI_INTR_FIXUP_FORCE
PCIBIOS_PRINTV((" WARNING: overriding irq %d\n", irq));
#else
PCIBIOS_PRINTV((" WARNING: preserving irq %d\n", irq));
return;
#endif
}
intr &= ~(PCI_INTERRUPT_LINE_MASK << PCI_INTERRUPT_LINE_SHIFT);
intr |= (l->irq << PCI_INTERRUPT_LINE_SHIFT);
pci_conf_write(pc, tag, PCI_INTERRUPT_REG, intr);
}
int
pci_intr_fixup(pci_chipset_tag_t pc, bus_space_tag_t iot, uint16_t *pciirq)
{
const struct pciintr_icu_table *piit = NULL;
pcitag_t icutag;
pcireg_t icuid;
int error = 0;
if (pcibios_pir_header.signature != 0 &&
(pcibios_pir_header.router_bus != 0 ||
PIR_DEVFUNC_DEVICE(pcibios_pir_header.router_devfunc) != 0 ||
PIR_DEVFUNC_FUNCTION(pcibios_pir_header.router_devfunc) != 0 ||
pcibios_pir_header.compat_router != 0)) {
icutag = pci_make_tag(pc, pcibios_pir_header.router_bus,
PIR_DEVFUNC_DEVICE(pcibios_pir_header.router_devfunc),
PIR_DEVFUNC_FUNCTION(pcibios_pir_header.router_devfunc));
icuid = pci_conf_read(pc, icutag, PCI_ID_REG);
if ((piit = pciintr_icu_lookup(icuid)) == NULL) {
icuid = pcibios_pir_header.compat_router;
piit = pciintr_icu_lookup(icuid);
}
} else {
int device, maxdevs = pci_bus_maxdevs(pc, 0);
for (device = 0; device < maxdevs; device++) {
const struct pci_quirkdata *qd;
int function, nfuncs;
pcireg_t bhlcr;
icutag = pci_make_tag(pc, 0, device, 0);
icuid = pci_conf_read(pc, icutag, PCI_ID_REG);
if (PCI_VENDOR(icuid) == PCI_VENDOR_INVALID)
continue;
if (PCI_VENDOR(icuid) == 0)
continue;
qd = pci_lookup_quirkdata(PCI_VENDOR(icuid),
PCI_PRODUCT(icuid));
bhlcr = pci_conf_read(pc, icutag, PCI_BHLC_REG);
if (PCI_HDRTYPE_MULTIFN(bhlcr) ||
(qd != NULL &&
(qd->quirks & PCI_QUIRK_MULTIFUNCTION) != 0))
nfuncs = 8;
else
nfuncs = 1;
for (function = 0; function < nfuncs; function++) {
icutag = pci_make_tag(pc, 0, device, function);
icuid = pci_conf_read(pc, icutag, PCI_ID_REG);
if (PCI_VENDOR(icuid) == PCI_VENDOR_INVALID)
continue;
if (PCI_VENDOR(icuid) == 0)
continue;
piit = pciintr_icu_lookup(icuid);
if (piit != NULL)
goto found;
}
}
icuid = 0;
found:;
}
if (piit == NULL) {
printf("pci_intr_fixup: no compatible PCI ICU found");
if (pcibios_pir_header.signature != 0 && icuid != 0)
printf(": ICU vendor 0x%04x product 0x%04x",
PCI_VENDOR(icuid), PCI_PRODUCT(icuid));
printf("\n");
#ifdef PCIBIOS_INTR_GUESS
if (pciintr_link_init())
return (-1);
if (pciintr_guess_irq())
return (-1);
if (pciintr_header_fixup(pc))
return (1);
return (0);
#else
return (-1);
#endif
}
if ((*piit->piit_init)(pc, iot, icutag, &pciintr_icu_tag,
&pciintr_icu_handle) != 0)
return (-1);
if (pciintr_link_init()) {
error = -1;
goto cleanup;
}
if (pciintr_link_fixup() != 0) {
error = -1;
goto cleanup;
}
if (pciintr_link_route(pciirq) != 0) {
error = 1;
goto cleanup;
}
if (pciintr_header_fixup(pc) != 0) {
error = 1;
goto cleanup;
}
if (pciintr_irq_release(pciirq) != 0) {
error = -1;
goto cleanup;
}
cleanup:
if (piit->piit_uninit != NULL)
(*piit->piit_uninit)(pciintr_icu_handle);
return (error);
}