From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e6.ny.us.ibm.com (e6.ny.us.ibm.com [32.97.182.146]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e6.ny.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 6029FDE03E for ; Fri, 13 Jun 2008 08:24:09 +1000 (EST) Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e6.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m5CMQD8u022077 for ; Thu, 12 Jun 2008 18:26:13 -0400 Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v9.0) with ESMTP id m5CMNkI9207738 for ; Thu, 12 Jun 2008 18:23:46 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m5CMNjTq019511 for ; Thu, 12 Jun 2008 18:23:46 -0400 Date: Thu, 12 Jun 2008 17:22:15 -0500 From: Robert Jennings To: paulus@samba.org Subject: [PATCH 15/19] powerpc: hvcs enablement for CMO Message-ID: <20080612222215.GW30916@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20080612215312.GF30916@linux.vnet.ibm.com> Cc: Brian King , linuxppc-dev@ozlabs.org, David Darrington List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , =46rom: Robert Jennings Define a get_io_entitlement function so that it can function in a Cooperative Memory Overcommitment (CMO) environment (it returns 0 to indicate that no IO entitlement is required, as the driver does not perform DMA operations). Signed-off-by: Robert Jennings --- drivers/char/hvcs.c | 6 ++++++ 1 file changed, 6 insertions(+) Index: b/drivers/char/hvcs.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- a/drivers/char/hvcs.c +++ b/drivers/char/hvcs.c @@ -756,6 +756,11 @@ static int hvcs_get_index(void) return -1; } =20 +unsigned long hvcs_get_io_entitlement(struct vio_dev *vdev) +{ + return 0; +} + static int __devinit hvcs_probe( struct vio_dev *dev, const struct vio_device_id *id) @@ -869,6 +874,7 @@ static struct vio_driver hvcs_vio_driver .id_table =3D hvcs_driver_table, .probe =3D hvcs_probe, .remove =3D hvcs_remove, + .get_io_entitlement =3D hvcs_get_io_entitlement, .driver =3D { .name =3D hvcs_driver_name, .owner =3D THIS_MODULE,