/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2003 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <assert.h>
#include <stdlib.h>
#include "rcapd_mapping.h"
#include "utils.h"
/*
* lmapping_t is a list of non-overlapping mappings, ordered by address. These
* functions add, remove, and verify the existence of mappings in such a list.
* rcapd_scanner.c is a consumer.
*/
typedef struct lmapping_find_cb_arg {
#ifdef DEBUG
/*
* Verify a sublist is properly ordered.
*/
static void
{
}
}
#else /* !DEBUG */
#define lmapping_verify(x) ((void)0)
#endif /* DEBUG */
/*
* Determine the position of a mapping with the given address and size. Upon
* return, lmfa_ret will be set to the actual mapping, if it exists, and
* lmfa_prior will be set to the mapping which does or would precede one with
* the given characteristics.
*/
static int
{
return (1);
} else
return (0);
}
static void
void *arg)
{
return;
}
}
}
int
{
return (-1);
return (0);
}
int
{
return (-1);
} else {
}
return (0);
}
int
{
}
/*ARGSUSED*/
static int
{
return (0);
}
void
{
}
#ifdef DEBUG
int
{
int res = 0;
int ch = 0;
int label_printed = 0;
#define OUTPUT_LABEL() \
if (label_printed == 0) { \
debug("changes in mappings:\n"); \
label_printed++; \
}
res = -1;
ch = '-';
} else {
ch = '+';
}
OUTPUT_LABEL();
} else {
}
}
OUTPUT_LABEL();
res = 1;
}
OUTPUT_LABEL();
res = 1;
}
return (res);
}
#endif /* DEBUG */