1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
  24 # Copyright 2014, Joyent, Inc. All rights reserved.
  25 # Copyright 2013 Garrett D'Amore <garrett@damore.org>
  26 # Copyright 2013 Saso Kiselkov. All rights reserved.
  27 # Copyright 2015 Igor Kozhukhov <ikozhukhov@gmail.com>
  28 # Copyright 2016 Nexenta Systems, Inc.
  29 #
  30 
  31 include $(SRC)/uts/Makefile.uts
  32 
  33 FILEMODE=644
  34 
  35 #
  36 #       Note that the following headers are present in the kernel but
  37 #       neither installed or shipped as part of the product:
  38 #               cpuid_drv.h:            Private interface for cpuid consumers
  39 #               unix_bb_info.h:         Private interface to kcov
  40 #
  41 
  42 i386_HDRS=                      \
  43         agp/agpamd64gart_io.h   \
  44         agp/agpdefs.h           \
  45         agp/agpgart_impl.h      \
  46         agp/agpmaster_io.h      \
  47         agp/agptarget_io.h      \
  48         agpgart.h               \
  49         asy.h                   \
  50         fd_debug.h              \
  51         fdc.h                   \
  52         fdmedia.h               \
  53         mouse.h                 \
  54         ucode.h
  55 
  56 sparc_HDRS=                     \
  57         mouse.h                 \
  58         scsi/targets/ssddef.h   \
  59         $(MDESCHDRS)
  60 
  61 # Generated headers
  62 GENHDRS=                        \
  63         priv_const.h            \
  64         priv_names.h            \
  65         usb/usbdevs.h
  66 
  67 CHKHDRS=                        \
  68         acpi_drv.h              \
  69         acct.h                  \
  70         acctctl.h               \
  71         acl.h                   \
  72         acl_impl.h              \
  73         aggr.h                  \
  74         aggr_impl.h             \
  75         aio.h                   \
  76         aio_impl.h              \
  77         aio_req.h               \
  78         aiocb.h                 \
  79         ascii.h                 \
  80         asynch.h                \
  81         atomic.h                \
  82         attr.h                  \
  83         audio.h                 \
  84         audioio.h               \
  85         autoconf.h              \
  86         auxv.h                  \
  87         auxv_386.h              \
  88         auxv_SPARC.h            \
  89         avl.h                   \
  90         avl_impl.h              \
  91         bitmap.h                \
  92         bitset.h                \
  93         bl.h                    \
  94         blkdev.h                \
  95         bofi.h                  \
  96         bofi_impl.h             \
  97         bpp_io.h                \
  98         bootstat.h              \
  99         brand.h                 \
 100         buf.h                   \
 101         bufmod.h                \
 102         bustypes.h              \
 103         byteorder.h             \
 104         callb.h                 \
 105         callo.h                 \
 106         cap_util.h              \
 107         cpucaps.h               \
 108         cpucaps_impl.h          \
 109         ccompile.h              \
 110         cdio.h                  \
 111         cladm.h                 \
 112         class.h                 \
 113         clconf.h                \
 114         clock_impl.h            \
 115         cmlb.h                  \
 116         cmn_err.h               \
 117         compress.h              \
 118         condvar.h               \
 119         condvar_impl.h          \
 120         conf.h                  \
 121         consdev.h               \
 122         console.h               \
 123         consplat.h              \
 124         vt.h                    \
 125         vtdaemon.h              \
 126         kd.h                    \
 127         contract.h              \
 128         contract_impl.h         \
 129         copyops.h               \
 130         core.h                  \
 131         corectl.h               \
 132         cpc_impl.h              \
 133         cpc_pcbe.h              \
 134         cpr.h                   \
 135         cpupart.h               \
 136         cpuvar.h                \
 137         crc32.h                 \
 138         cred.h                  \
 139         cred_impl.h             \
 140         crtctl.h                \
 141         cryptmod.h              \
 142         csiioctl.h              \
 143         ctf.h                   \
 144         ctfs.h                  \
 145         ctfs_impl.h             \
 146         ctf_api.h               \
 147         ctype.h                 \
 148         cyclic.h                \
 149         cyclic_impl.h           \
 150         dacf.h                  \
 151         dacf_impl.h             \
 152         damap.h                 \
 153         damap_impl.h            \
 154         dc_ki.h                 \
 155         ddi.h                   \
 156         ddifm.h                 \
 157         ddifm_impl.h            \
 158         ddi_hp.h                \
 159         ddi_hp_impl.h           \
 160         ddi_intr.h              \
 161         ddi_intr_impl.h         \
 162         ddi_impldefs.h          \
 163         ddi_implfuncs.h         \
 164         ddi_obsolete.h          \
 165         ddi_periodic.h          \
 166         ddidevmap.h             \
 167         ddidmareq.h             \
 168         ddimapreq.h             \
 169         ddipropdefs.h           \
 170         dditypes.h              \
 171         debug.h                 \
 172         des.h                   \
 173         devctl.h                \
 174         devcache.h              \
 175         devcache_impl.h         \
 176         devfm.h                 \
 177         devid_cache.h           \
 178         devinfo_impl.h          \
 179         devops.h                \
 180         devpolicy.h             \
 181         devpoll.h               \
 182         dirent.h                \
 183         disp.h                  \
 184         dkbad.h                 \
 185         dkio.h                  \
 186         dklabel.h               \
 187         dl.h                    \
 188         dlpi.h                  \
 189         dld.h                   \
 190         dld_impl.h              \
 191         dld_ioc.h               \
 192         dls.h                   \
 193         dls_mgmt.h              \
 194         dls_impl.h              \
 195         dma_i8237A.h            \
 196         dnlc.h                  \
 197         door.h                  \
 198         door_data.h             \
 199         door_impl.h             \
 200         dtrace.h                \
 201         dtrace_impl.h           \
 202         dumpadm.h               \
 203         dumphdr.h               \
 204         ecppsys.h               \
 205         ecppio.h                \
 206         ecppreg.h               \
 207         ecppvar.h               \
 208         edonr.h                 \
 209         efi_partition.h         \
 210         elf.h                   \
 211         elf_386.h               \
 212         elf_SPARC.h             \
 213         elf_notes.h             \
 214         elf_amd64.h             \
 215         elftypes.h              \
 216         emul64.h                \
 217         emul64cmd.h             \
 218         emul64var.h             \
 219         epm.h                   \
 220         epoll.h                 \
 221         errno.h                 \
 222         errorq.h                \
 223         errorq_impl.h           \
 224         esunddi.h               \
 225         ethernet.h              \
 226         euc.h                   \
 227         eucioctl.h              \
 228         eventfd.h               \
 229         exacct.h                \
 230         exacct_catalog.h        \
 231         exacct_impl.h           \
 232         exec.h                  \
 233         exechdr.h               \
 234         extdirent.h             \
 235         fault.h                 \
 236         fasttrap.h              \
 237         fasttrap_impl.h         \
 238         fbio.h                  \
 239         fbuf.h                  \
 240         fcntl.h                 \
 241         fct.h                   \
 242         fct_defines.h           \
 243         fctio.h                 \
 244         fdbuffer.h              \
 245         fdio.h                  \
 246         feature_tests.h         \
 247         fem.h                   \
 248         file.h                  \
 249         filio.h                 \
 250         flock.h                 \
 251         flock_impl.h            \
 252         fork.h                  \
 253         fss.h                   \
 254         fsspriocntl.h           \
 255         fsid.h                  \
 256         fssnap.h                \
 257         fssnap_if.h             \
 258         fstyp.h                 \
 259         ftrace.h                \
 260         fx.h                    \
 261         fxpriocntl.h            \
 262         gfs.h                   \
 263         gld.h                   \
 264         gldpriv.h               \
 265         group.h                 \
 266         hdio.h                  \
 267         hook.h                  \
 268         hook_event.h            \
 269         hook_impl.h             \
 270         hwconf.h                \
 271         ia.h                    \
 272         iapriocntl.h            \
 273         ibpart.h                \
 274         id32.h                  \
 275         idmap.h                 \
 276         ieeefp.h                \
 277         id_space.h              \
 278         instance.h              \
 279         int_const.h             \
 280         int_fmtio.h             \
 281         int_limits.h            \
 282         int_types.h             \
 283         inttypes.h              \
 284         ioccom.h                \
 285         ioctl.h                 \
 286         ipc.h                   \
 287         ipc_impl.h              \
 288         ipc_rctl.h              \
 289         ipd.h                   \
 290         ipmi.h                  \
 291         isa_defs.h              \
 292         iscsi_authclient.h      \
 293         iscsi_authclientglue.h  \
 294         iscsi_protocol.h        \
 295         jioctl.h                \
 296         kbd.h                   \
 297         kbdreg.h                \
 298         kbio.h                  \
 299         kcpc.h                  \
 300         kdi.h                   \
 301         kdi_impl.h              \
 302         kiconv.h                \
 303         kiconv_big5_utf8.h      \
 304         kiconv_cck_common.h     \
 305         kiconv_cp950hkscs_utf8.h        \
 306         kiconv_emea1.h          \
 307         kiconv_emea2.h          \
 308         kiconv_euckr_utf8.h     \
 309         kiconv_euctw_utf8.h     \
 310         kiconv_gb18030_utf8.h   \
 311         kiconv_gb2312_utf8.h    \
 312         kiconv_hkscs_utf8.h     \
 313         kiconv_ja.h             \
 314         kiconv_ja_jis_to_unicode.h      \
 315         kiconv_ja_unicode_to_jis.h      \
 316         kiconv_ko.h             \
 317         kiconv_latin1.h         \
 318         kiconv_sc.h             \
 319         kiconv_tc.h             \
 320         kiconv_uhc_utf8.h       \
 321         kiconv_utf8_big5.h      \
 322         kiconv_utf8_cp950hkscs.h        \
 323         kiconv_utf8_euckr.h     \
 324         kiconv_utf8_euctw.h     \
 325         kiconv_utf8_gb18030.h   \
 326         kiconv_utf8_gb2312.h    \
 327         kiconv_utf8_hkscs.h     \
 328         kiconv_utf8_uhc.h       \
 329         kidmap.h                \
 330         klpd.h                  \
 331         klwp.h                  \
 332         kmdb.h                  \
 333         kmem.h                  \
 334         kmem_impl.h             \
 335         kobj.h                  \
 336         kobj_impl.h             \
 337         ksocket.h               \
 338         kstat.h                 \
 339         kstr.h                  \
 340         ksyms.h                 \
 341         ksynch.h                \
 342         ldterm.h                \
 343         lgrp.h                  \
 344         lgrp_user.h             \
 345         libc_kernel.h           \
 346         link.h                  \
 347         list.h                  \
 348         list_impl.h             \
 349         llc1.h                  \
 350         loadavg.h               \
 351         lock.h                  \
 352         lockfs.h                \
 353         lockstat.h              \
 354         lofi.h                  \
 355         log.h                   \
 356         logindmux.h             \
 357         logindmux_impl.h        \
 358         lwp.h                   \
 359         lwp_timer_impl.h        \
 360         lwp_upimutex_impl.h     \
 361         lpif.h                  \
 362         mac.h                   \
 363         mac_client.h            \
 364         mac_client_impl.h       \
 365         mac_ether.h             \
 366         mac_flow.h              \
 367         mac_flow_impl.h         \
 368         mac_impl.h              \
 369         mac_provider.h          \
 370         mac_soft_ring.h         \
 371         mac_stat.h              \
 372         machelf.h               \
 373         map.h                   \
 374         md4.h                   \
 375         md5.h                   \
 376         md5_consts.h            \
 377         mdi_impldefs.h          \
 378         mem.h                   \
 379         mem_config.h            \
 380         memlist.h               \
 381         mkdev.h                 \
 382         mhd.h                   \
 383         mii.h                   \
 384         miiregs.h               \
 385         mixer.h                 \
 386         mman.h                  \
 387         mmapobj.h               \
 388         mntent.h                \
 389         mntio.h                 \
 390         mnttab.h                \
 391         modctl.h                \
 392         mode.h                  \
 393         model.h                 \
 394         modhash.h               \
 395         modhash_impl.h          \
 396         mount.h                 \
 397         mouse.h                 \
 398         msacct.h                \
 399         msg.h                   \
 400         msg_impl.h              \
 401         msio.h                  \
 402         msreg.h                 \
 403         mtio.h                  \
 404         multidata.h             \
 405         multidata_impl.h        \
 406         mutex.h                 \
 407         nbmlock.h               \
 408         ndifm.h                 \
 409         ndi_impldefs.h          \
 410         net80211.h              \
 411         net80211_crypto.h       \
 412         net80211_ht.h           \
 413         net80211_proto.h        \
 414         netconfig.h             \
 415         neti.h                  \
 416         netstack.h              \
 417         nexusdefs.h             \
 418         note.h                  \
 419         null.h                  \
 420         nvpair.h                \
 421         nvpair_impl.h           \
 422         objfs.h                 \
 423         objfs_impl.h            \
 424         ontrap.h                \
 425         open.h                  \
 426         openpromio.h            \
 427         panic.h                 \
 428         param.h                 \
 429         pathconf.h              \
 430         pathname.h              \
 431         pattr.h                 \
 432         queue.h                 \
 433         serializer.h            \
 434         pbio.h                  \
 435         pccard.h                \
 436         pci.h                   \
 437         pcie.h                  \
 438         pci_impl.h              \
 439         pci_tools.h             \
 440         pcmcia.h                \
 441         pctypes.h               \
 442         pfmod.h                 \
 443         pg.h                    \
 444         pghw.h                  \
 445         physmem.h               \
 446         pkp_hash.h              \
 447         pm.h                    \
 448         policy.h                \
 449         poll.h                  \
 450         poll_impl.h             \
 451         pool.h                  \
 452         pool_impl.h             \
 453         pool_pset.h             \
 454         port.h                  \
 455         port_impl.h             \
 456         port_kernel.h           \
 457         portif.h                \
 458         ppmio.h                 \
 459         pppt_ic_if.h            \
 460         pppt_ioctl.h            \
 461         priocntl.h              \
 462         priv.h                  \
 463         priv_impl.h             \
 464         prnio.h                 \
 465         proc.h                  \
 466         processor.h             \
 467         procfs.h                \
 468         procset.h               \
 469         project.h               \
 470         protosw.h               \
 471         prsystm.h               \
 472         pset.h                  \
 473         pshot.h                 \
 474         ptem.h                  \
 475         ptms.h                  \
 476         ptyvar.h                \
 477         raidioctl.h             \
 478         ramdisk.h               \
 479         random.h                \
 480         rctl.h                  \
 481         rctl_impl.h             \
 482         rds.h                   \
 483         reboot.h                \
 484         refstr.h                \
 485         refstr_impl.h           \
 486         resource.h              \
 487         rlioctl.h               \
 488         rt.h                    \
 489         rtpriocntl.h            \
 490         rwlock.h                \
 491         rwlock_impl.h           \
 492         rwstlock.h              \
 493         sad.h                   \
 494         schedctl.h              \
 495         sdt.h                   \
 496         select.h                \
 497         sem.h                   \
 498         sem_impl.h              \
 499         sema_impl.h             \
 500         semaphore.h             \
 501         sendfile.h              \
 502         ser_sync.h              \
 503         session.h               \
 504         sha1.h                  \
 505         sha1_consts.h           \
 506         sha2.h                  \
 507         sha2_consts.h           \
 508         share.h                 \
 509         shm.h                   \
 510         shm_impl.h              \
 511         sid.h                   \
 512         siginfo.h               \
 513         signal.h                \
 514         signalfd.h              \
 515         skein.h                 \
 516         sleepq.h                \
 517         smbios.h                \
 518         smbios_impl.h           \
 519         sobject.h               \
 520         socket.h                \
 521         socket_impl.h           \
 522         socket_proto.h          \
 523         socketvar.h             \
 524         sockfilter.h            \
 525         sockio.h                \
 526         soundcard.h             \
 527         squeue.h                \
 528         squeue_impl.h           \
 529         srn.h                   \
 530         sservice.h              \
 531         stat.h                  \
 532         statfs.h                \
 533         statvfs.h               \
 534         stdbool.h               \
 535         stdint.h                \
 536         stermio.h               \
 537         stmf.h                  \
 538         stmf_defines.h          \
 539         stmf_ioctl.h            \
 540         stmf_sbd_ioctl.h        \
 541         stream.h                \
 542         strft.h                 \
 543         strlog.h                \
 544         strmdep.h               \
 545         stropts.h               \
 546         strredir.h              \
 547         strstat.h               \
 548         strsubr.h               \
 549         strsun.h                \
 550         strtty.h                \
 551         sunddi.h                \
 552         sunldi.h                \
 553         sunldi_impl.h           \
 554         sunmdi.h                \
 555         sunndi.h                \
 556         sunos_dhcp_class.h      \
 557         sunpm.h                 \
 558         suntpi.h                \
 559         suntty.h                \
 560         swap.h                  \
 561         synch.h                 \
 562         sysdc.h                 \
 563         sysdc_impl.h            \
 564         syscall.h               \
 565         sysconf.h               \
 566         sysconfig.h             \
 567         sysevent.h              \
 568         sysevent_impl.h         \
 569         sysinfo.h               \
 570         syslog.h                \
 571         sysmacros.h             \
 572         sysmsg_impl.h           \
 573         systeminfo.h            \
 574         systm.h                 \
 575         task.h                  \
 576         taskq.h                 \
 577         taskq_impl.h            \
 578         t_kuser.h               \
 579         t_lock.h                \
 580         telioctl.h              \
 581         termio.h                \
 582         termios.h               \
 583         termiox.h               \
 584         thread.h                \
 585         ticlts.h                \
 586         ticots.h                \
 587         ticotsord.h             \
 588         tihdr.h                 \
 589         time.h                  \
 590         time_impl.h             \
 591         time_std_impl.h         \
 592         timeb.h                 \
 593         timer.h                 \
 594         timerfd.h               \
 595         times.h                 \
 596         timex.h                 \
 597         timod.h                 \
 598         tirdwr.h                \
 599         tiuser.h                \
 600         tl.h                    \
 601         tnf.h                   \
 602         tnf_com.h               \
 603         tnf_probe.h             \
 604         tnf_writer.h            \
 605         todio.h                 \
 606         tpicommon.h             \
 607         ts.h                    \
 608         tspriocntl.h            \
 609         ttcompat.h              \
 610         ttold.h                 \
 611         tty.h                   \
 612         ttychars.h              \
 613         ttydev.h                \
 614         tuneable.h              \
 615         turnstile.h             \
 616         types.h                 \
 617         types32.h               \
 618         tzfile.h                \
 619         u8_textprep.h           \
 620         u8_textprep_data.h      \
 621         uadmin.h                \
 622         ucred.h                 \
 623         uio.h                   \
 624         ulimit.h                \
 625         un.h                    \
 626         unistd.h                \
 627         user.h                  \
 628         ustat.h                 \
 629         utime.h                 \
 630         utsname.h               \
 631         utssys.h                \
 632         uuid.h                  \
 633         va_impl.h               \
 634         va_list.h               \
 635         var.h                   \
 636         varargs.h               \
 637         vfs.h                   \
 638         vfs_opreg.h             \
 639         vfstab.h                \
 640         vgareg.h                \
 641         videodev2.h             \
 642         visual_io.h             \
 643         vlan.h                  \
 644         vm.h                    \
 645         vm_usage.h              \
 646         vmem.h                  \
 647         vmem_impl.h             \
 648         vmsystm.h               \
 649         vnic.h                  \
 650         vnic_impl.h             \
 651         vnode.h                 \
 652         vscan.h                 \
 653         vtoc.h                  \
 654         vtrace.h                \
 655         vuid_event.h            \
 656         vuid_wheel.h            \
 657         vuid_queue.h            \
 658         vuid_state.h            \
 659         vuid_store.h            \
 660         wait.h                  \
 661         waitq.h                 \
 662         wanboot_impl.h          \
 663         watchpoint.h            \
 664         winlockio.h             \
 665         zcons.h                 \
 666         zone.h                  \
 667         xti_inet.h              \
 668         xti_osi.h               \
 669         xti_xtiopt.h            \
 670         zmod.h
 671 
 672 HDRS=                           \
 673         $(GENHDRS)              \
 674         $(CHKHDRS)
 675 
 676 AUDIOHDRS=                      \
 677         ac97.h                  \
 678         audio_common.h          \
 679         audio_driver.h          \
 680         audio_oss.h             \
 681         g711.h
 682 
 683 AVHDRS=                         \
 684         iec61883.h
 685 
 686 BSCHDRS=                        \
 687         bscbus.h                \
 688         bscv_impl.h             \
 689         lom_ebuscodes.h         \
 690         lom_io.h                \
 691         lom_priv.h              \
 692         lombus.h
 693 
 694 MDESCHDRS=                      \
 695         mdesc.h                 \
 696         mdesc_impl.h            
 697 
 698 CPUDRVHDRS=                     \
 699         cpudrv.h
 700 
 701 CRYPTOHDRS=                     \
 702         elfsign.h               \
 703         ioctl.h                 \
 704         ioctladmin.h            \
 705         common.h                \
 706         impl.h                  \
 707         spi.h                   \
 708         api.h                   \
 709         ops_impl.h              \
 710         sched_impl.h
 711 
 712 DCAMHDRS=                       \
 713         dcam1394_io.h
 714 
 715 IBHDRS=                 \
 716         ib_types.h      \
 717         ib_pkt_hdrs.h
 718 
 719 IBTLHDRS=               \
 720         ibtl_types.h    \
 721         ibtl_status.h   \
 722         ibti.h          \
 723         ibti_cm.h       \
 724         ibci.h          \
 725         ibti_common.h   \
 726         ibvti.h         \
 727         ibtl_ci_types.h
 728 
 729 IBTLIMPLHDRS=           \
 730         ibtl_util.h
 731 
 732 IBNEXHDRS=              \
 733         ibnex_devctl.h
 734 
 735 IBMFHDRS=               \
 736         ibmf.h          \
 737         ibmf_msg.h      \
 738         ibmf_saa.h      \
 739         ibmf_utils.h
 740 
 741 IBMGTHDRS=              \
 742         ib_dm_attr.h    \
 743         ib_mad.h        \
 744         sm_attr.h       \
 745         sa_recs.h
 746 
 747 IBDHDRS=                \
 748         ibd.h
 749 
 750 OFHDRS=                 \
 751         ofa_solaris.h   \
 752         ofed_kernel.h
 753 
 754 RDMAHDRS=               \
 755         ib_addr.h       \
 756         ib_user_mad.h   \
 757         ib_user_sa.h    \
 758         ib_user_verbs.h \
 759         ib_verbs.h      \
 760         rdma_cm.h       \
 761         rdma_user_cm.h
 762 
 763 SOL_UVERBSHDRS=         \
 764         sol_uverbs.h    \
 765         sol_uverbs2ucma.h       \
 766         sol_uverbs_comp.h       \
 767         sol_uverbs_hca.h        \
 768         sol_uverbs_qp.h         \
 769         sol_uverbs_event.h
 770 
 771 SOL_UMADHDRS=           \
 772         sol_umad.h
 773 
 774 SOL_UCMAHDRS=           \
 775         sol_ucma.h      \
 776         sol_rdma_user_cm.h
 777 
 778 SOL_OFSHDRS=            \
 779         sol_cma.h       \
 780         sol_ib_cma.h    \
 781         sol_ofs_common.h        \
 782         sol_kverb_impl.h
 783 
 784 TAVORHDRS=              \
 785         tavor_ioctl.h
 786 
 787 HERMONHDRS=             \
 788         hermon_ioctl.h
 789 
 790 MLNXHDRS=               \
 791         mlnx_umap.h
 792 
 793 IDMHDRS=                \
 794         idm.h           \
 795         idm_impl.h      \
 796         idm_so.h        \
 797         idm_text.h      \
 798         idm_transport.h \
 799         idm_conn_sm.h
 800 
 801 ISCSITHDRS=             \
 802         radius_packet.h         \
 803         radius_protocol.h       \
 804         chap.h                  \
 805         isns_protocol.h         \
 806         iscsi_if.h              \
 807         iscsit_common.h
 808 
 809 ISOHDRS=                        \
 810         signal_iso.h
 811 
 812 DERIVED_LVMHDRS=        \
 813         md_mdiox.h              \
 814         md_basic.h              \
 815         mdmed.h                 \
 816         md_mhdx.h               \
 817         mdmn_commd.h
 818 
 819 LVMHDRS=                        \
 820         md_convert.h            \
 821         md_crc.h                \
 822         md_hotspares.h          \
 823         md_mddb.h               \
 824         md_mirror.h             \
 825         md_mirror_shared.h      \
 826         md_names.h              \
 827         md_notify.h             \
 828         md_raid.h               \
 829         md_rename.h             \
 830         md_sp.h                 \
 831         md_stripe.h             \
 832         md_trans.h              \
 833         mdio.h                  \
 834         mdvar.h                 
 835 
 836 ALL_LVMHDRS=                    \
 837         $(LVMHDRS)              \
 838         $(DERIVED_LVMHDRS)
 839 
 840 FMHDRS=                         \
 841         protocol.h              \
 842         util.h
 843 
 844 FMFSHDRS=                       \
 845         zfs.h
 846 
 847 FMIOHDRS=                       \
 848         ddi.h                   \
 849         disk.h                  \
 850         pci.h                   \
 851         scsi.h                  \
 852         sun4upci.h              \
 853         opl_mc_fm.h
 854 
 855 FSHDRS=                         \
 856         autofs.h                \
 857         decomp.h                \
 858         dv_node.h               \
 859         sdev_impl.h             \
 860         fifonode.h              \
 861         hsfs_isospec.h          \
 862         hsfs_node.h             \
 863         hsfs_rrip.h             \
 864         hsfs_spec.h             \
 865         hsfs_susp.h             \
 866         lofs_info.h             \
 867         lofs_node.h             \
 868         mntdata.h               \
 869         namenode.h              \
 870         pc_dir.h                \
 871         pc_fs.h                 \
 872         pc_label.h              \
 873         pc_node.h               \
 874         pxfs_ki.h               \
 875         snode.h                 \
 876         swapnode.h              \
 877         tmp.h                   \
 878         tmpnode.h               \
 879         udf_inode.h             \
 880         udf_volume.h            \
 881         ufs_acl.h               \
 882         ufs_bio.h               \
 883         ufs_filio.h             \
 884         ufs_fs.h                \
 885         ufs_fsdir.h             \
 886         ufs_inode.h             \
 887         ufs_lockfs.h            \
 888         ufs_log.h               \
 889         ufs_mount.h             \
 890         ufs_panic.h             \
 891         ufs_prot.h              \
 892         ufs_quota.h             \
 893         ufs_snap.h              \
 894         ufs_trans.h             \
 895         zfs.h                   \
 896         zut.h
 897 
 898 SCSIHDRS=               \
 899         scsi.h          \
 900         scsi_address.h  \
 901         scsi_ctl.h      \
 902         scsi_fm.h       \
 903         scsi_names.h    \
 904         scsi_params.h   \
 905         scsi_pkt.h      \
 906         scsi_resource.h \
 907         scsi_types.h    \
 908         scsi_watch.h
 909 
 910 SCSICONFHDRS=           \
 911         autoconf.h      \
 912         device.h
 913 
 914 SCSIGENHDRS=            \
 915         commands.h      \
 916         dad_mode.h      \
 917         inquiry.h       \
 918         message.h       \
 919         mode.h          \
 920         persist.h       \
 921         sense.h         \
 922         sff_frames.h    \
 923         smp_frames.h    \
 924         status.h
 925 
 926 SCSIIMPLHDRS=           \
 927         commands.h      \
 928         inquiry.h       \
 929         mode.h          \
 930         scsi_reset_notify.h \
 931         scsi_sas.h      \
 932         sense.h         \
 933         services.h      \
 934         smp_transport.h \
 935         spc3_types.h    \
 936         status.h        \
 937         transport.h     \
 938         types.h         \
 939         uscsi.h         \
 940         usmp.h
 941 
 942 SCSITARGETSHDRS=        \
 943         ses.h           \
 944         sesio.h         \
 945         sgendef.h       \
 946         stdef.h         \
 947         sddef.h         \
 948         smp.h
 949 
 950 SCSIADHDRS=
 951 
 952 SCSICADHDRS=
 953 
 954 SCSIISCSIHDRS=          \
 955         iscsi_door.h    \
 956         iscsi_if.h
 957 
 958 SCSIVHCIHDRS=           \
 959         scsi_vhci.h     \
 960         mpapi_impl.h    \
 961         mpapi_scsi_vhci.h
 962 
 963 SDCARDHDRS=             \
 964         sda.h           \
 965         sda_impl.h      \
 966         sda_ioctl.h
 967 
 968 FC4HDRS=                        \
 969         fc_transport.h  \
 970         linkapp.h       \
 971         fc.h            \
 972         fcp.h           \
 973         fcal_transport.h \
 974         fcal.h          \
 975         fcal_linkapp.h  \
 976         fcio.h
 977 
 978 FCHDRS=                 \
 979         fc.h            \
 980         fcio.h          \
 981         fc_types.h      \
 982         fc_appif.h
 983 
 984 FCIMPLHDRS=             \
 985         fc_error.h      \
 986         fcph.h
 987 
 988 FCULPHDRS=              \
 989         fcp_util.h      \
 990         fcsm.h
 991 
 992 SATAGENHDRS=            \
 993         sata_hba.h      \
 994         sata_defs.h     \
 995         sata_cfgadm.h
 996 
 997 SYSEVENTHDRS=           \
 998         ap_driver.h     \
 999         dev.h           \
1000         domain.h        \
1001         dr.h            \
1002         env.h           \
1003         eventdefs.h     \
1004         ipmp.h          \
1005         pwrctl.h        \
1006         svm.h           \
1007         vrrp.h
1008 
1009 CONTRACTHDRS=           \
1010         process.h       \
1011         process_impl.h  \
1012         device.h        \
1013         device_impl.h
1014 
1015 USBHDRS=        \
1016         usba.h  \
1017         usbai.h
1018 
1019 USBAUDHDRS=           \
1020         usb_audio.h
1021 
1022 USBHUBDHDRS=            \
1023         hub.h           \
1024         hubd_impl.h
1025 
1026 USBHIDHDRS=             \
1027         hid.h
1028 
1029 USBMSHDRS=              \
1030         usb_bulkonly.h  \
1031         usb_cbi.h
1032 
1033 USBPRNHDRS=           \
1034         usb_printer.h
1035 
1036 USBCDCHDRS=             \
1037         usb_cdc.h
1038 
1039 USBVIDHDRS=           \
1040         usbvc.h
1041 
1042 USBWCMHDRS=             \
1043         usbwcm.h
1044 
1045 UGENHDRS=           \
1046         usb_ugen.h
1047 
1048 HOTPLUGHDRS=    \
1049         hpcsvc.h        \
1050         hpctrl.h
1051 
1052 HOTPLUGPCIHDRS= \
1053         pcicfg.h        \
1054         pcihp.h
1055 
1056 RSMHDRS= \
1057         rsm.h   \
1058         rsm_common.h    \
1059         rsmapi_common.h \
1060         rsmpi.h \
1061         rsmpi_driver.h  \
1062         rsmka_path_int.h
1063 
1064 TSOLHDRS=               \
1065         label.h         \
1066         label_macro.h   \
1067         priv.h          \
1068         tndb.h          \
1069         tsyscall.h
1070 
1071 I1394HDRS=              \
1072         cmd1394.h       \
1073         id1394.h        \
1074         ieee1212.h      \
1075         ieee1394.h      \
1076         ixl1394.h       \
1077         s1394_impl.h    \
1078         t1394.h
1079 
1080 # "cmdk" headers used on sparc
1081 SDKTPHDRS=              \
1082         dadkio.h        \
1083         fdisk.h
1084 
1085 # "cmdk" headers used on i386
1086 DKTPHDRS=               \
1087         altsctr.h       \
1088         bbh.h           \
1089         cm.h            \
1090         cmdev.h         \
1091         cmdk.h          \
1092         cmpkt.h         \
1093         controller.h    \
1094         dadev.h         \
1095         dadk.h          \
1096         dadkio.h        \
1097         fctypes.h       \
1098         fdisk.h         \
1099         flowctrl.h      \
1100         gda.h           \
1101         quetypes.h      \
1102         queue.h         \
1103         tgcom.h         \
1104         tgdk.h
1105 
1106 # "pc" header files used on i386
1107 PCHDRS=                 \
1108         avintr.h        \
1109         dma_engine.h    \
1110         i8272A.h        \
1111         pcic_reg.h      \
1112         pcic_var.h      \
1113         pic.h           \
1114         pit.h           \
1115         rtc.h
1116 
1117 NXGEHDRS=                       \
1118         nxge.h                  \
1119         nxge_common.h           \
1120         nxge_common_impl.h      \
1121         nxge_defs.h             \
1122         nxge_hw.h               \
1123         nxge_impl.h             \
1124         nxge_ipp.h              \
1125         nxge_ipp_hw.h           \
1126         nxge_mac.h              \
1127         nxge_mac_hw.h           \
1128         nxge_fflp.h             \
1129         nxge_fflp_hw.h          \
1130         nxge_mii.h              \
1131         nxge_rxdma.h            \
1132         nxge_rxdma_hw.h         \
1133         nxge_txc.h              \
1134         nxge_txc_hw.h           \
1135         nxge_txdma.h            \
1136         nxge_txdma_hw.h         \
1137         nxge_virtual.h          \
1138         nxge_espc.h
1139 
1140 include Makefile.syshdrs
1141 
1142 dcam/%.check:   dcam/%.h
1143         $(DOT_H_CHECK)
1144 
1145 CHECKHDRS=                                              \
1146         $($(MACH)_HDRS:%.h=%.check)                     \
1147         $(AUDIOHDRS:%.h=audio/%.check)                  \
1148         $(AVHDRS:%.h=av/%.check)                        \
1149         $(BSCHDRS:%.h=%.check)                          \
1150         $(CHKHDRS:%.h=%.check)                          \
1151         $(CPUDRVHDRS:%.h=%.check)                       \
1152         $(CRYPTOHDRS:%.h=crypto/%.check)                \
1153         $(DCAMHDRS:%.h=dcam/%.check)                    \
1154         $(FC4HDRS:%.h=fc4/%.check)                      \
1155         $(FCHDRS:%.h=fibre-channel/%.check)             \
1156         $(FCIMPLHDRS:%.h=fibre-channel/impl/%.check)    \
1157         $(FCULPHDRS:%.h=fibre-channel/ulp/%.check)      \
1158         $(IBHDRS:%.h=ib/%.check)                        \
1159         $(IBDHDRS:%.h=ib/clients/ibd/%.check)           \
1160         $(IBTLHDRS:%.h=ib/ibtl/%.check)                 \
1161         $(IBTLIMPLHDRS:%.h=ib/ibtl/impl/%.check)        \
1162         $(IBNEXHDRS:%.h=ib/ibnex/%.check)       \
1163         $(IBMGTHDRS:%.h=ib/mgt/%.check)                 \
1164         $(IBMFHDRS:%.h=ib/mgt/ibmf/%.check)             \
1165         $(OFHDRS:%.h=ib/clients/of/%.check)                     \
1166         $(RDMAHDRS:%.h=ib/clients/of/rdma/%.check)              \
1167         $(SOL_UVERBSHDRS:%.h=ib/clients/of/sol_uverbs/%.check)  \
1168         $(SOL_UCMAHDRS:%.h=ib/clients/of/sol_ucma/%.check)      \
1169         $(SOL_OFSHDRS:%.h=ib/clients/of/sol_ofs/%.check)        \
1170         $(TAVORHDRS:%.h=ib/adapters/tavor/%.check)      \
1171         $(HERMONHDRS:%.h=ib/adapters/hermon/%.check)    \
1172         $(MLNXHDRS:%.h=ib/adapters/%.check)             \
1173         $(IDMHDRS:%.h=idm/%.check)                      \
1174         $(ISCSIHDRS:%.h=iscsi/%.check)                  \
1175         $(ISCSITHDRS:%.h=iscsit/%.check)                        \
1176         $(ISOHDRS:%.h=iso/%.check)                      \
1177         $(FMHDRS:%.h=fm/%.check)                        \
1178         $(FMFSHDRS:%.h=fm/fs/%.check)                   \
1179         $(FMIOHDRS:%.h=fm/io/%.check)                   \
1180         $(FSHDRS:%.h=fs/%.check)                        \
1181         $(LVMHDRS:%.h=lvm/%.check)                      \
1182         $(SCSIHDRS:%.h=scsi/%.check)                    \
1183         $(SCSIADHDRS:%.h=scsi/adapters/%.check)         \
1184         $(SCSICONFHDRS:%.h=scsi/conf/%.check)           \
1185         $(SCSIIMPLHDRS:%.h=scsi/impl/%.check)           \
1186         $(SCSIISCSIHDRS:%.h=scsi/adapters/%.check)      \
1187         $(SCSIGENHDRS:%.h=scsi/generic/%.check)         \
1188         $(SCSITARGETSHDRS:%.h=scsi/targets/%.check)     \
1189         $(SCSIVHCIHDRS:%.h=scsi/adapters/%.check)       \
1190         $(SATAGENHDRS:%.h=sata/%.check)                 \
1191         $(SDCARDHDRS:%.h=sdcard/%.check)                \
1192         $(SYSEVENTHDRS:%.h=sysevent/%.check)            \
1193         $(CONTRACTHDRS:%.h=contract/%.check)            \
1194         $(USBAUDHDRS:%.h=usb/clients/audio/%.check)   \
1195         $(USBHUBDHDRS:%.h=usb/hubd/%.check)             \
1196         $(USBHIDHDRS:%.h=usb/clients/hid/%.check)       \
1197         $(USBMSHDRS:%.h=usb/clients/mass_storage/%.check)       \
1198         $(USBPRNHDRS:%.h=usb/clients/printer/%.check)   \
1199         $(USBCDCHDRS:%.h=usb/clients/usbcdc/%.check)    \
1200         $(USBVIDHDRS:%.h=usb/clients/video/usbvc/%.check)   \
1201         $(USBWCMHDRS:%.h=usb/clients/usbinput/usbwcm/%.check)   \
1202         $(UGENHDRS:%.h=usb/clients/ugen/%.check)   \
1203         $(USBHDRS:%.h=usb/%.check)                      \
1204         $(I1394HDRS:%.h=1394/%.check)                   \
1205         $(RSMHDRS:%.h=rsm/%.check)                      \
1206         $(TSOLHDRS:%.h=tsol/%.check)                    \
1207         $(NXGEHDRS:%.h=nxge/%.check)
1208 
1209 
1210 .KEEP_STATE:
1211 
1212 .PARALLEL:                      \
1213         $(CHECKHDRS)            \
1214         $(ROOTHDRS)             \
1215         $(ROOTAUDHDRS)          \
1216         $(ROOTAVHDRS)           \
1217         $(ROOTCRYPTOHDRS)       \
1218         $(ROOTDCAMHDRS)         \
1219         $(ROOTISOHDRS)          \
1220         $(ROOTIDMHDRS)          \
1221         $(ROOTISCSIHDRS)        \
1222         $(ROOTISCSITHDRS)       \
1223         $(ROOTFC4HDRS)          \
1224         $(ROOTFCHDRS)           \
1225         $(ROOTFCIMPLHDRS)       \
1226         $(ROOTFCULPHDRS)        \
1227         $(ROOTFMHDRS)           \
1228         $(ROOTFMIOHDRS)         \
1229         $(ROOTFMFSHDRS)         \
1230         $(ROOTFSHDRS)           \
1231         $(ROOTIBDHDRS)          \
1232         $(ROOTIBHDRS)           \
1233         $(ROOTIBTLHDRS)         \
1234         $(ROOTIBTLIMPLHDRS)     \
1235         $(ROOTIBNEXHDRS)        \
1236         $(ROOTIBMGTHDRS)        \
1237         $(ROOTIBMFHDRS)         \
1238         $(ROOTOFHDRS)           \
1239         $(ROOTRDMAHDRS)         \
1240         $(ROOTSOL_OFSHDRS)      \
1241         $(ROOTSOL_UMADHDRS)     \
1242         $(ROOTSOL_UVERBSHDRS)   \
1243         $(ROOTSOL_UCMAHDRS)     \
1244         $(ROOTTAVORHDRS)        \
1245         $(ROOTHERMONHDRS)       \
1246         $(ROOTMLNXHDRS)         \
1247         $(ROOTLVMHDRS)          \
1248         $(ROOTSCSIHDRS)         \
1249         $(ROOTSCSIADHDRS)       \
1250         $(ROOTSCSICONFHDRS)     \
1251         $(ROOTSCSIISCSIHDRS)    \
1252         $(ROOTSCSIGENHDRS)      \
1253         $(ROOTSCSIIMPLHDRS)     \
1254         $(ROOTSCSIVHCIHDRS)     \
1255         $(ROOTSDCARDHDRS)       \
1256         $(ROOTSYSEVENTHDRS)     \
1257         $(ROOTCONTRACTHDRS)     \
1258         $(ROOTUSBHDRS)          \
1259         $(ROOTUWBHDRS)          \
1260         $(ROOTUWBAHDRS)         \
1261         $(ROOTUSBAUDHDRS)       \
1262         $(ROOTUSBHUBDHDRS)      \
1263         $(ROOTUSBHIDHDRS)       \
1264         $(ROOTUSBHRCHDRS)       \
1265         $(ROOTUSBMSHDRS)        \
1266         $(ROOTUSBPRNHDRS)       \
1267         $(ROOTUSBCDCHDRS)       \
1268         $(ROOTUSBVIDHDRS)       \
1269         $(ROOTUSBWCMHDRS)       \
1270         $(ROOTUGENHDRS)         \
1271         $(ROOT1394HDRS)         \
1272         $(ROOTHOTPLUGHDRS)      \
1273         $(ROOTHOTPLUGPCIHDRS)   \
1274         $(ROOTRSMHDRS)          \
1275         $(ROOTTSOLHDRS)         \
1276         $($(MACH)_ROOTHDRS)
1277 
1278 
1279 install_h:                      \
1280         $(ROOTDIRS)             \
1281         LVMDERIVED_H            \
1282         .WAIT                   \
1283         $(ROOTHDRS)             \
1284         $(ROOTAUDHDRS)          \
1285         $(ROOTAVHDRS)           \
1286         $(ROOTCRYPTOHDRS)       \
1287         $(ROOTDCAMHDRS)         \
1288         $(ROOTISOHDRS)          \
1289         $(ROOTIDMHDRS)          \
1290         $(ROOTISCSIHDRS)        \
1291         $(ROOTISCSITHDRS)       \
1292         $(ROOTFC4HDRS)          \
1293         $(ROOTFCHDRS)           \
1294         $(ROOTFCIMPLHDRS)       \
1295         $(ROOTFCULPHDRS)        \
1296         $(ROOTFMHDRS)           \
1297         $(ROOTFMFSHDRS)         \
1298         $(ROOTFMIOHDRS)         \
1299         $(ROOTFSHDRS)           \
1300         $(ROOTIBDHDRS)          \
1301         $(ROOTIBHDRS)           \
1302         $(ROOTIBTLHDRS)         \
1303         $(ROOTIBTLIMPLHDRS)     \
1304         $(ROOTIBNEXHDRS)        \
1305         $(ROOTIBMGTHDRS)        \
1306         $(ROOTIBMFHDRS)         \
1307         $(ROOTOFHDRS)           \
1308         $(ROOTRDMAHDRS)         \
1309         $(ROOTSOL_OFSHDRS)      \
1310         $(ROOTSOL_UMADHDRS)     \
1311         $(ROOTSOL_UVERBSHDRS)   \
1312         $(ROOTSOL_UCMAHDRS)     \
1313         $(ROOTTAVORHDRS)        \
1314         $(ROOTHERMONHDRS)       \
1315         $(ROOTMLNXHDRS)         \
1316         $(ROOTLVMHDRS)          \
1317         $(ROOTSCSIHDRS)         \
1318         $(ROOTSCSIADHDRS)       \
1319         $(ROOTSCSIISCSIHDRS)    \
1320         $(ROOTSCSICONFHDRS)     \
1321         $(ROOTSCSIGENHDRS)      \
1322         $(ROOTSCSIIMPLHDRS)     \
1323         $(ROOTSCSIVHCIHDRS)     \
1324         $(ROOTSDCARDHDRS)       \
1325         $(ROOTSYSEVENTHDRS)     \
1326         $(ROOTCONTRACTHDRS)     \
1327         $(ROOTUWBHDRS)          \
1328         $(ROOTUWBAHDRS)         \
1329         $(ROOTUSBHDRS)          \
1330         $(ROOTUSBAUDHDRS)       \
1331         $(ROOTUSBHUBDHDRS)      \
1332         $(ROOTUSBHIDHDRS)       \
1333         $(ROOTUSBHRCHDRS)       \
1334         $(ROOTUSBMSHDRS)        \
1335         $(ROOTUSBPRNHDRS)       \
1336         $(ROOTUSBCDCHDRS)       \
1337         $(ROOTUSBVIDHDRS)       \
1338         $(ROOTUSBWCMHDRS)       \
1339         $(ROOTUGENHDRS)         \
1340         $(ROOT1394HDRS)         \
1341         $(ROOTHOTPLUGHDRS)      \
1342         $(ROOTHOTPLUGPCIHDRS)   \
1343         $(ROOTRSMHDRS)          \
1344         $(ROOTTSOLHDRS)         \
1345         $($(MACH)_ROOTHDRS)
1346 
1347 all_h: $(GENHDRS)
1348 
1349 priv_const.h: $(PRIVS_AWK) $(PRIVS_DEF)
1350         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v privhfile=$@
1351 
1352 priv_names.h: $(PRIVS_AWK) $(PRIVS_DEF)
1353         $(AWK) -f $(PRIVS_AWK) < $(PRIVS_DEF) -v pubhfile=$@
1354 
1355 usb/usbdevs.h: $(USBDEVS_AWK) $(USBDEVS_DATA)
1356         $(AWK) -f $(USBDEVS_AWK) $(USBDEVS_DATA) -H > $@
1357 
1358 LVMDERIVED_H:
1359         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) all_h
1360 
1361 clean:
1362         $(RM) $(GENHDRS)
1363 
1364 clobber: clean
1365         cd $(SRC)/uts/common/sys/lvm; pwd; $(MAKE) clobber
1366 
1367 check:  $(CHECKHDRS)
1368 
1369 FRC: