/* Simply writes @size bytes of @val to @port.  */
int ia64_pci_legacy_write(struct pci_bus *bus, u16 port, u32 val, u8 size)
/* Simply writes @size bytes of @val to @port.  */
int ia64_pci_legacy_write(struct pci_bus *bus, u16 port, u32 val, u8 size)
{
	int ret = size;
	switch (size) {
	case 1:
		outb(val, port);
		break;
	case 2:
		outw(val, port);
		break;
	case 4:
		outl(val, port);
		break;
	default:
		ret = -EINVAL;
		break;
	}
	return ret;
}