diff options
Diffstat (limited to 'usr/src/uts/sun4u/ngdr/sys/dr_util.h')
-rw-r--r-- | usr/src/uts/sun4u/ngdr/sys/dr_util.h | 36 |
1 files changed, 28 insertions, 8 deletions
diff --git a/usr/src/uts/sun4u/ngdr/sys/dr_util.h b/usr/src/uts/sun4u/ngdr/sys/dr_util.h index c23dd00a2d..69b0bbd84c 100644 --- a/usr/src/uts/sun4u/ngdr/sys/dr_util.h +++ b/usr/src/uts/sun4u/ngdr/sys/dr_util.h @@ -2,9 +2,8 @@ * 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. + * Common Development and Distribution License (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 * or http://www.opensolaris.org/os/licensing. @@ -20,8 +19,8 @@ * CDDL HEADER END */ /* - * Copyright (c) 2000 by Sun Microsystems, Inc. - * All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. */ #ifndef _SYS_DR_UTIL_H_ @@ -69,11 +68,32 @@ extern sbd_error_t *drerr_new_v(int e_code, char *fmt, va_list args); extern void drerr_set_c(int log, sbd_error_t **ep, int e_code, char *fmt, ...); -extern void memlist_delete(struct memlist *mlist); +extern void dr_memlist_delete(struct memlist *mlist); extern void memlist_dump(struct memlist *mlist); -extern int memlist_intersect(struct memlist *al, +extern int dr_memlist_intersect(struct memlist *al, struct memlist *bl); -extern void memlist_coalesce(struct memlist *mlist); +extern void dr_memlist_coalesce(struct memlist *mlist); +extern struct memlist *dr_memlist_dup(struct memlist *mlist); +extern struct memlist *dr_memlist_add_span(struct memlist *mlist, + uint64_t base, uint64_t len); +extern struct memlist *dr_memlist_del_span(struct memlist *mlist, + uint64_t base, uint64_t len); +extern struct memlist *dr_memlist_cat_span(struct memlist *mlist, + uint64_t base, uint64_t len); + +/* + * These are all utilities internal for DR. There are + * similar functions in common/os which have similar names. + * We rename them to make sure there is no name space + * conflict. + */ +#define memlist_delete dr_memlist_delete +#define memlist_intersect dr_memlist_intersect +#define memlist_coalesce dr_memlist_coalesce +#define memlist_dup dr_memlist_dup +#define memlist_add_span dr_memlist_add_span +#define memlist_del_span dr_memlist_del_span +#define memlist_cat_span dr_memlist_cat_span #ifdef __cplusplus } |