/*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* BEGIN CSTYLED */
/* drm_scatter.h -- IOCTLs to manage scatter/gather memory -*- linux-c -*-
* Created: Mon Dec 18 23:20:54 2000 by gareth@valinux.com */
/*-
* Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*
* Authors:
* Gareth Hughes <gareth@valinux.com>
* Eric Anholt <anholt@FreeBSD.org>
*
*/
/* END CSTYLED */
#pragma ident "%Z%%M% %I% %E% SMI"
#include "drmP.h"
#include <gfx_private.h>
#include "drm_io32.h"
#define DEBUG_SCATTER 0
#ifdef _LP64
#else
#define ScatterHandle(x) (unsigned int)(x)
#endif
void
{
}
}
}
if (entry) {
}
}
/*ARGSUSED*/
int
{
unsigned long pages;
return (EINVAL);
#ifdef _MULTI_DATAMODEL
sizeof (request32));
} else
#endif
sizeof (request));
goto err_exit;
#ifdef _MULTI_DATAMODEL
sizeof (data32));
} else
#endif
sizeof (request));
DRM_LOCK();
DRM_UNLOCK();
return (EINVAL);
}
DRM_UNLOCK();
return (0);
return (ENOMEM);
}
/*ARGSUSED*/
int
{
#ifdef _MULTI_DATAMODEL
sizeof (request32));
} else
#endif
sizeof (request));
DRM_LOCK();
DRM_UNLOCK();
return (EINVAL);
return (0);
}